You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
325 B
20 lines
325 B
.DEFAULT_GOAL := all |
|
|
|
SRC_DIR := src/ |
|
EXE_NAME := ftu |
|
INSTALLATION_DIR := /usr/local/bin/ |
|
|
|
all: |
|
cd $(SRC_DIR) && go build && mv $(EXE_NAME) .. |
|
|
|
race: |
|
cd $(SRC_DIR) && go build -race && mv $(EXE_NAME) .. |
|
|
|
install: all |
|
cp $(EXE_NAME) $(INSTALLATION_DIR) |
|
|
|
test: |
|
cd $(SRC_DIR) && go test ./... ; cd .. |
|
|
|
clean: |
|
rm $(EXE_NAME)
|