1
0

In Makefile a bin/ prefix was added to ${TARGET}, so make could see an executable and not rebuild it every time.

This commit is contained in:
Alexander Andreev 2023-09-23 21:51:49 +04:00
parent caf096c0f6
commit 5b57592370
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -11,7 +11,7 @@ LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
.PHONY: run install uninstall clean
${TARGET}: web/*.pug.go
bin/${TARGET}: web/*.pug.go
go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go
web/*.pug.go: web/templates/*.pug