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:
parent
caf096c0f6
commit
5b57592370
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
|||||||
|
|
||||||
.PHONY: run install uninstall clean
|
.PHONY: run install uninstall clean
|
||||||
|
|
||||||
${TARGET}: web/*.pug.go
|
bin/${TARGET}: web/*.pug.go
|
||||||
go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go
|
go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go
|
||||||
|
|
||||||
web/*.pug.go: web/templates/*.pug
|
web/*.pug.go: web/templates/*.pug
|
||||||
|
Loading…
Reference in New Issue
Block a user