19 lines
239 B
Makefile
19 lines
239 B
Makefile
|
# weather Makefile
|
||
|
|
||
|
GOCMD=go
|
||
|
GOBUILDCMD=${GOCMD} build
|
||
|
GOOPTIONS=-mod=vendor -ldflags="-s -w"
|
||
|
|
||
|
RMCMD=rm
|
||
|
BINNAME=weather
|
||
|
|
||
|
SRCFILES=cmd/weather/*.go
|
||
|
|
||
|
all: build
|
||
|
|
||
|
build:
|
||
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
||
|
|
||
|
clean:
|
||
|
${RMCMD} -f ${BINNAME}
|