mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-07 12:13:30 -06:00
26 lines
285 B
Makefile
26 lines
285 B
Makefile
BIN = builder
|
|
SRC = main.go
|
|
GOMODS = github.com/joho/godotenv
|
|
|
|
all: ${BIN}
|
|
|
|
${BIN}: ${SRC}
|
|
go build -o $@
|
|
|
|
run: ${BIN}
|
|
@./$< &
|
|
|
|
stop:
|
|
-@pkill -SIGTERM ${BIN} || true
|
|
|
|
restart: stop run
|
|
|
|
bootstrap:
|
|
go mod init ${BIN}
|
|
go get ${GOMODS}
|
|
|
|
clean:
|
|
rm -f ${BIN}
|
|
|
|
clean-mods:
|
|
rm -f go.*
|