Pawel Wieczorek | cc75291 | 2019-05-26 11:40:36 +0200 | [diff] [blame^] | 1 | PROJECT = check |
2 | BIN_DIR = bin | ||||
3 | BIN = check | ||||
4 | |||||
5 | all: run | ||||
6 | |||||
7 | run: build | ||||
8 | $(BIN_DIR)/$(BIN) | ||||
9 | |||||
10 | build: $(BIN) | ||||
11 | |||||
12 | $(BIN): export GOPATH = $(shell pwd) | ||||
13 | $(BIN): | ||||
14 | go install $(PROJECT)/cmd/$(BIN) | ||||
15 | |||||
16 | clean: | ||||
17 | rm $(BIN_DIR)/$(BIN) | ||||
18 | rmdir $(BIN_DIR) | ||||
19 | |||||
20 | .PHONY: all run build clean $(BIN) |