ussd-data-connect/Makefile
Mohammed Sohail d9c619ad71
Some checks failed
release / docker (push) Has been cancelled
release: v0.1.0-beta
2025-01-03 10:41:43 +03:00

16 lines
400 B
Makefile

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