github.com/nais/outtune@v0.0.0-20230327072907-ef48d1263aba/Makefile (about) 1 all: clean api cli 2 3 COMMON_GO_FILES = $(shell find pkg/ -type f) 4 5 .PHONY: cli 6 cli: outtune-cli 7 outtune-cli: $(COMMON_GO_FILES) $(shell find cmd/outtune-cli -type f) 8 go build -o $@ ./cmd/$@ 9 10 .PHONY: api 11 api: outtune-api 12 outtune-api: $(COMMON_GO_FILES) $(shell find cmd/outtune-api -type f) 13 go build -o $@ ./cmd/$@ 14 15 .PHONY: clean 16 clean: 17 rm -f outtune-api outtune-cli 18 19 .PHONY: test 20 test: 21 go test ./...