blob: b42e48acc763efdfd780fc55972ee2eecc4a3a04 [file] [log] [blame]
Pawel Wieczorekcc752912019-05-26 11:40:36 +02001PROJECT = check
2BIN_DIR = bin
3BIN = check
4
5all: run
6
7run: build
8 $(BIN_DIR)/$(BIN)
9
10build: $(BIN)
11
12$(BIN): export GOPATH = $(shell pwd)
13$(BIN):
14 go install $(PROJECT)/cmd/$(BIN)
15
Pawel Wieczorek056ef4c2019-07-08 14:17:55 +020016test: export GOPATH = $(shell pwd)
17test:
18 go test $(PROJECT)/...
19
Pawel Wieczorekcc752912019-05-26 11:40:36 +020020clean:
Pawel Wieczorek660f4962019-07-08 14:24:19 +020021 -rm $(BIN_DIR)/$(BIN)
22 -rmdir $(BIN_DIR)
Pawel Wieczorekcc752912019-05-26 11:40:36 +020023
Pawel Wieczorek056ef4c2019-07-08 14:17:55 +020024.PHONY: all run build test clean $(BIN)