2020-02-04 22:21:21 +01:00
|
|
|
# weather Makefile
|
|
|
|
|
2020-02-16 11:52:04 +01:00
|
|
|
PROJECT=weather
|
2020-02-04 22:21:21 +01:00
|
|
|
GOCMD=go
|
|
|
|
GOBUILDCMD=${GOCMD} build
|
2020-02-16 11:52:04 +01:00
|
|
|
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
|
|
|
|
RMCMD=/bin/rm
|
2020-02-04 22:21:21 +01:00
|
|
|
|
|
|
|
SRCFILES=cmd/weather/*.go
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
|
|
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
|
|
|
|
|
|
|
clean:
|
2020-02-16 11:52:04 +01:00
|
|
|
${RMCMD} ${PROJECT}
|