blob: b42e48acc763efdfd780fc55972ee2eecc4a3a04 [file] [log] [blame]
PROJECT = check
BIN_DIR = bin
BIN = check
all: run
run: build
$(BIN_DIR)/$(BIN)
build: $(BIN)
$(BIN): export GOPATH = $(shell pwd)
$(BIN):
go install $(PROJECT)/cmd/$(BIN)
test: export GOPATH = $(shell pwd)
test:
go test $(PROJECT)/...
clean:
-rm $(BIN_DIR)/$(BIN)
-rmdir $(BIN_DIR)
.PHONY: all run build test clean $(BIN)