Makefile (432B)
1 APP_PATH = ./ 2 BIN_PATH = ./bin 3 4 ## build: compiles binaries to bin/ dir 5 .PHONY: build 6 build: 7 @mkdir -p ${BIN_PATH} 8 GOARCH=amd64 GOOS=darwin go build -o ${BIN_PATH}/certichain ${APP_PATH} 9 10 ## clean: removes the bin/ dir 11 .PHONY: clean 12 clean: 13 @rm -rf ${BIN_PATH} 14 15 ## test: runs test for internal/ dir 16 .PHONY: test 17 test: 18 @go test ./internal/... 19 20 .PHONY: help 21 help: 22 @echo "Usage:" 23 @sed -n 's/^##[[:space:]]*/\t/p' $(MAKEFILE_LIST)