18 lines
254 B
Makefile
18 lines
254 B
Makefile
# weather Makefile
|
|
|
|
PROJECT=weather
|
|
GOCMD=go
|
|
GOBUILDCMD=${GOCMD} build
|
|
GOOPTIONS=-mod=vendor -ldflags="-s -w" -o ${PROJECT}
|
|
RMCMD=/bin/rm
|
|
|
|
SRCFILES=cmd/weather/*.go
|
|
|
|
all: build
|
|
|
|
build:
|
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
|
|
|
clean:
|
|
${RMCMD} ${PROJECT}
|