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