github.com/orangenpresse/up@v0.6.0/Makefile (about) 1 2 GO ?= go 3 4 # Build all files. 5 build: 6 @echo "==> Building" 7 @$(GO) generate ./... 8 .PHONY: build 9 10 # Install from source. 11 install: 12 @echo "==> Installing up ${GOPATH}/bin/up" 13 @$(GO) install ./... 14 .PHONY: install 15 16 # Install the development dependencies. 17 install.deps: 18 @echo "==> Installing dev dependencies" 19 @$(GO) get -u rsc.io/gt 20 @$(GO) get -u github.com/jteeuwen/go-bindata/... 21 @$(GO) get -u github.com/pointlander/peg 22 .PHONY: install.deps 23 24 # Run all tests. 25 test: internal/proxy/bin/bin_assets.go 26 @$(GO) test -timeout 2m ./... && echo "\n==>\033[32m Ok\033[m\n" 27 .PHONY: test 28 29 # Run all tests in CI. 30 test.ci: internal/proxy/bin/bin_assets.go 31 @$(GO) test -v -timeout 5m ./... && echo "\n==>\033[32m Ok\033[m\n" 32 .PHONY: test.ci 33 34 internal/proxy/bin/bin_assets.go: 35 @$(GO) generate ./... 36 37 # Show source statistics. 38 cloc: 39 @cloc -exclude-dir=vendor,node_modules . 40 .PHONY: cloc 41 42 # Release binaries to GitHub. 43 release: build 44 @echo "==> Releasing" 45 @goreleaser -p 1 --rm-dist -config .goreleaser.yml 46 @echo "==> Complete" 47 .PHONY: release 48 49 # Show to-do items per file. 50 todo: 51 @rg TODO: 52 .PHONY: todo 53 54 # Show size of imports. 55 size: 56 @curl -sL https://gist.githubusercontent.com/tj/04e0965e23da00ca33f101e5b2ed4ed4/raw/9aa16698b2bc606cf911219ea540972edef05c4b/gistfile1.txt | bash 57 .PHONY: size 58 59 # Clean. 60 clean: 61 @rm -fr \ 62 dist \ 63 internal/proxy/bin/bin_assets.go \ 64 internal/shim/bindata.go 65 .PHONY: clean