updated Makefile
This commit is contained in:
parent
1140d2fb84
commit
a7d0147d97
9
Makefile
9
Makefile
@ -1,11 +1,10 @@
|
|||||||
# weather Makefile
|
# weather Makefile
|
||||||
|
|
||||||
|
PROJECT=weather
|
||||||
GOCMD=go
|
GOCMD=go
|
||||||
GOBUILDCMD=${GOCMD} build
|
GOBUILDCMD=${GOCMD} build
|
||||||
GOOPTIONS=-mod=vendor -ldflags="-s -w"
|
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
|
||||||
|
RMCMD=/bin/rm
|
||||||
RMCMD=rm
|
|
||||||
BINNAME=weather
|
|
||||||
|
|
||||||
SRCFILES=cmd/weather/*.go
|
SRCFILES=cmd/weather/*.go
|
||||||
|
|
||||||
@ -15,4 +14,4 @@ build:
|
|||||||
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
${RMCMD} -f ${BINNAME}
|
${RMCMD} ${PROJECT}
|
||||||
|
Loading…
Reference in New Issue
Block a user