diff --git a/Makefile b/Makefile index 3a3a78e..dcc3b46 100644 --- a/Makefile +++ b/Makefile @@ -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}