g2g/Makefile

20 lines
261 B
Makefile
Raw Normal View History

2020-01-29 12:54:43 +01:00
# g2g Makefile
GOCMD=go
GOBUILDCMD=${GOCMD} build
2020-02-04 18:42:30 +01:00
GOOPTIONS=-mod=vendor -ldflags="-s -w"
2019-01-27 23:54:07 +01:00
VERSION := $(shell cat ./VERSION)
2020-01-29 12:54:43 +01:00
RMCMD=rm
BINNAME=g2g
SRCFILES=cmd/g2g/*.go
all: build
2019-01-27 23:52:13 +01:00
build:
2020-01-29 12:54:43 +01:00
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
2019-01-27 23:54:07 +01:00
2020-01-29 12:54:43 +01:00
clean:
${RMCMD} -f ${BINNAME}