Makefile
raw| 1 | # Main Makefile for archive |
| 2 | # |
| 3 | # Copyright 2018 © by Ollivier Robert |
| 4 | # |
| 5 | |
| 6 | GO= go |
| 7 | GOBIN= ${GOPATH}/bin |
| 8 | |
| 9 | SRCS= archive.go utils.go |
| 10 | |
| 11 | OPTS= -ldflags="-s -w" -v |
| 12 | |
| 13 | all: build |
| 14 | |
| 15 | build: ${SRCS} |
| 16 | ${GO} build ${OPTS} . |
| 17 | |
| 18 | test: |
| 19 | ${GO} test -v . |
| 20 | |
| 21 | install: ${BIN} |
| 22 | ${GO} install ${OPTS} . |
| 23 | |
| 24 | clean: |
| 25 | ${GO} clean -v |
| 26 | |
| 27 | # use github.com/mgechev/revive |
| 28 | lint: |
| 29 | revive |
| 30 | |
| 31 | push: |
| 32 | git push --all |
| 33 | git push --tags |