ussd-data-connect/Makefile

16 lines
400 B
Makefile
Raw Permalink Normal View History

2025-01-03 08:41:43 +01:00
BIN := ussd-data-connect
BUILD_CONF := CGO_ENABLED=0 GOOS=linux GOARCH=amd64
BUILD_COMMIT := $(shell git rev-parse --short HEAD 2> /dev/null)
DEBUG := DEV=true
.PHONY: build run clean docs gen-service-token
clean:
rm ${BIN} ${BOOTSTRAP_BIN}
build:
${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o build/${BIN} cmd/main.go
run:
${BUILD_CONF} ${DEBUG} go run cmd/main.go