github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/Makefile (about) 1 NO_COLOR=\033[0m 2 OK_COLOR=\033[32;01m 3 ERROR_COLOR=\033[31;01m 4 WARN_COLOR=\033[33;01m 5 6 all: format lint build test 7 8 deps: 9 @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" 10 ./tools/dev_setup.sh 11 12 format: 13 @echo "$(OK_COLOR)==> Formatting$(NO_COLOR)" 14 go-bindata -pkg util -o util/go-bindata.go etc/schema/... etc/extensions/... etc/templates/... public/... 15 go fmt ./... 16 17 test: 18 @echo "$(OK_COLOR)==> Testing$(NO_COLOR)" 19 ./run_test.sh 20 21 lint: 22 @echo "$(OK_COLOR)==> Linting$(NO_COLOR)" 23 ./tools/lint.sh 24 25 build: deps 26 @echo "$(OK_COLOR)==> Building$(NO_COLOR)" 27 ./tools/build.sh 28 29 install: 30 @echo "$(OK_COLOR)==> Installing$(NO_COLOR)" 31 ./tools/install.sh