20 lines
264 B
Makefile
20 lines
264 B
Makefile
# dip Makefile
|
|
|
|
GOCMD=go
|
|
GOBUILDCMD=${GOCMD} build
|
|
GOOPTIONS=-mod=vendor -ldflags="-s -w"
|
|
PACKRCMD=${GOPATH}/bin/packr2
|
|
|
|
SRCFILES=cmd/dip/*.go
|
|
|
|
all: build
|
|
|
|
build:
|
|
${GOPATH}/bin/packr2
|
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
|
|
|
clean:
|
|
rm -f dip
|
|
${PACKRCMD} clean
|
|
|