updated Makefile
This commit is contained in:
parent
f7081cd518
commit
424d730b7c
8
Makefile
8
Makefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user