conex-builder/Makefile
2024-08-18 01:22:28 -06:00

29 lines
350 B
Makefile

BIN = builder
SRC = main.go
GOFILES = go.sum go.mod
GOMODS = github.com/joho/godotenv
all: ${BIN}
${BIN}: ${SRC} ${GOFILES}
go build -o $@
${GOFILES}:
go mod init ${BIN}
go get ${GOMODS}
run: ${BIN}
@./$< &
stop:
-@pkill -SIGTERM ${BIN} || true
restart: stop run
clean-all: clean clean-mods
clean:
rm -f ${BIN}
clean-mods:
rm -f go.*