2020-01-29 12:54:43 +01:00
|
|
|
# g2g Makefile
|
|
|
|
|
|
|
|
GOCMD=go
|
|
|
|
GOBUILDCMD=${GOCMD} build
|
|
|
|
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}
|