github.com/jalateras/up@v0.1.5/Makefile (about) 1 2 # Build all files. 3 build: 4 @go generate ./... 5 .PHONY: build 6 7 # Run all tests. 8 test: 9 @go test -cover ./... 10 .PHONY: test 11 12 # Test setup for CI. 13 test.setup: 14 @echo "==> Install dep" 15 @go get github.com/golang/dep/cmd/dep 16 @echo "==> Install dependencies" 17 @dep ensure 18 .PHONY: test.setup 19 20 # Show source statistics. 21 cloc: 22 @cloc -exclude-dir=vendor,node_modules . 23 .PHONY: cloc 24 25 # Release binaries to GitHub. 26 release: 27 @echo "==> Releasing" 28 @goreleaser -p 1 --rm-dist -config .goreleaser.yml 29 @echo "==> Complete" 30 .PHONY: release 31 32 # Show to-do items per file. 33 todo: 34 @grep \ 35 --exclude-dir=vendor \ 36 --exclude-dir=node_modules \ 37 --text \ 38 --color \ 39 -nRo -E ' TODO:.*|SkipNow' . 40 .PHONY: todo 41 42 # Show size of imports. 43 size: 44 @curl -sL https://gist.githubusercontent.com/tj/04e0965e23da00ca33f101e5b2ed4ed4/raw/9aa16698b2bc606cf911219ea540972edef05c4b/gistfile1.txt | bash 45 .PHONY: size 46 47 # Clean. 48 clean: 49 @rm -fr dist 50 .PHONY: clean