From 5b575923703d2eef750ffa873a1a5513078dfa59 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 23 Sep 2023 21:51:49 +0400 Subject: [PATCH] In Makefile a bin/ prefix was added to ${TARGET}, so make could see an executable and not rebuild it every time. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a0c26dd..68485ac 100755 --- a/Makefile +++ b/Makefile @@ -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