| 1 |
# Main Makefile for dmarc-cat |
| 2 |
# |
| 3 |
# Copyright 2018 © by Ollivier Robert |
| 4 |
# |
| 5 |
|
| 6 |
GO= go |
| 7 |
GOBIN= ${GOPATH}/bin |
| 8 |
|
| 9 |
BIN= dmarc-cat |
| 10 |
|
| 11 |
SRCS= analyze.go file.go main.go resolve.go types.go utils.go |
| 12 |
|
| 13 |
OPTS= -ldflags="-s -w" -v |
| 14 |
|
| 15 |
all: ${BIN} |
| 16 |
|
| 17 |
${BIN}: ${SRCS} |
| 18 |
${GO} build -o ${BIN} ${OPTS} . |
| 19 |
|
| 20 |
windows: ${SRCS} |
| 21 |
${GO} build -o ${BIN}.exe ${OPTS} . |
| 22 |
|
| 23 |
test: |
| 24 |
${GO} test -v . |
| 25 |
|
| 26 |
lint: |
| 27 |
gometalinter |
| 28 |
|
| 29 |
install: ${BIN} |
| 30 |
${GO} install ${OPTS} . |
| 31 |
|
| 32 |
clean: |
| 33 |
${GO} clean -v |
| 34 |
|
| 35 |
push: |
| 36 |
git push --all |
| 37 |
git push --tags |