github.com/rendon/cf@v0.0.0-20220806233241-5cb5d3939c03/Makefile (about) 1 SRC=$(shell ls *.go) 2 bin/cf: $(SRC) 3 go fmt 4 go vet 5 go build -ldflags "-s" -o bin/cf 6 7 default: bin/cf 8 install: bin/cf 9 mkdir -p ~/bin 10 cp bin/cf ~/bin/ 11 test: bin/cf 12 go test 13 14 coverage-test: 15 go test -coverprofile=coverage.out 16 go tool cover -func=coverage.out 17 go tool cover -html=coverage.out 18 rm coverage.out 19 20 clean: 21 rm -vf bin/cf