20 lines
261 B
Makefile
20 lines
261 B
Makefile
# g2g Makefile
|
|
|
|
GOCMD=go
|
|
GOBUILDCMD=${GOCMD} build
|
|
GOOPTIONS=-mod=vendor -ldflags="-s -w"
|
|
VERSION := $(shell cat ./VERSION)
|
|
|
|
RMCMD=rm
|
|
BINNAME=g2g
|
|
|
|
SRCFILES=cmd/g2g/*.go
|
|
|
|
all: build
|
|
|
|
build:
|
|
${GOBUILDCMD} ${GOOPTIONS} ${SRCFILES}
|
|
|
|
clean:
|
|
${RMCMD} -f ${BINNAME}
|