updated Makefile

This commit is contained in:
Paul 2020-02-16 11:52:04 +01:00
parent 1140d2fb84
commit a7d0147d97

View File

@ -1,11 +1,10 @@
# weather Makefile
PROJECT=weather
GOCMD=go
GOBUILDCMD=${GOCMD} build
GOOPTIONS=-mod=vendor -ldflags="-s -w"
RMCMD=rm
BINNAME=weather
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
RMCMD=/bin/rm
SRCFILES=cmd/weather/*.go
@ -15,4 +14,4 @@ build:
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
clean:
${RMCMD} -f ${BINNAME}
${RMCMD} ${PROJECT}