mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-07 04:03:29 -06:00
29 lines
350 B
Makefile
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.*
|