mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-12-22 09:47:32 +01:00
18 lines
353 B
Makefile
18 lines
353 B
Makefile
BIN := cic-custodial
|
|
BUILD_CONF := CGO_ENABLED=1 GOOS=linux GOARCH=amd64
|
|
BUILD_COMMIT := $(git rev-parse --short HEAD)
|
|
|
|
.PHONY: build
|
|
|
|
clean:
|
|
rm ${BIN}
|
|
|
|
build:
|
|
${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BIN} cmd/service/*
|
|
|
|
run:
|
|
${BUILD_CONF} go run cmd/service/*
|
|
|
|
run-debug:
|
|
${BUILD_CONF} go run cmd/service/* -debug
|