dip/Makefile

22 lines
305 B
Makefile
Raw Permalink Normal View History

2020-01-27 21:16:08 +01:00
# dip Makefile
2020-02-11 19:39:41 +01:00
PROJECT=dip
2020-01-27 21:16:08 +01:00
GOCMD=go
GOBUILDCMD=${GOCMD} build
2020-02-11 19:39:41 +01:00
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
2020-01-27 21:16:08 +01:00
PACKRCMD=${GOPATH}/bin/packr2
2020-02-11 19:39:41 +01:00
RMCMD=/bin/rm
2020-01-27 21:16:08 +01:00
SRCFILES=cmd/dip/*.go
all: build
build:
2020-02-11 19:39:41 +01:00
${PACKRCMD}
2020-01-27 21:16:08 +01:00
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
clean:
2020-02-11 19:39:41 +01:00
${RMCMD} ${PROJECT}
2020-01-27 21:16:08 +01:00
${PACKRCMD} clean