mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-07 12:13:30 -06:00
pimp makefile
This commit is contained in:
parent
1ff85e982a
commit
59ea41ed74
1 changed files with 7 additions and 4 deletions
11
Makefile
11
Makefile
|
@ -1,12 +1,17 @@
|
||||||
BIN = builder
|
BIN = builder
|
||||||
SRC = main.go
|
SRC = main.go
|
||||||
|
GOFILES = go.sum go.mod
|
||||||
GOMODS = github.com/joho/godotenv
|
GOMODS = github.com/joho/godotenv
|
||||||
|
|
||||||
all: ${BIN}
|
all: ${BIN}
|
||||||
|
|
||||||
${BIN}: ${SRC}
|
${BIN}: ${SRC} ${GOFILES}
|
||||||
go build -o $@
|
go build -o $@
|
||||||
|
|
||||||
|
${GOFILES}:
|
||||||
|
go mod init ${BIN}
|
||||||
|
go get ${GOMODS}
|
||||||
|
|
||||||
run: ${BIN}
|
run: ${BIN}
|
||||||
@./$< &
|
@./$< &
|
||||||
|
|
||||||
|
@ -15,9 +20,7 @@ stop:
|
||||||
|
|
||||||
restart: stop run
|
restart: stop run
|
||||||
|
|
||||||
bootstrap:
|
clean-all: clean clean-mods
|
||||||
go mod init ${BIN}
|
|
||||||
go get ${GOMODS}
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ${BIN}
|
rm -f ${BIN}
|
||||||
|
|
Loading…
Reference in a new issue