updated Makefile

This commit is contained in:
Paul 2020-02-11 19:39:41 +01:00
parent f7081cd518
commit 424d730b7c

View File

@ -1,19 +1,21 @@
# dip Makefile
PROJECT=dip
GOCMD=go
GOBUILDCMD=${GOCMD} build
GOOPTIONS=-mod=vendor -ldflags="-s -w"
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
PACKRCMD=${GOPATH}/bin/packr2
RMCMD=/bin/rm
SRCFILES=cmd/dip/*.go
all: build
build:
${GOPATH}/bin/packr2
${PACKRCMD}
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
clean:
rm -f dip
${RMCMD} ${PROJECT}
${PACKRCMD} clean