diff --git a/Makefile b/Makefile index e0f8c32..a4f63e9 100755 --- a/Makefile +++ b/Makefile @@ -9,15 +9,15 @@ VERSION=23.32.0 FLAGS:=-buildmode=pie -modcacherw -mod=readonly -trimpath LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo -all: web/*.pug.go ${TARGET} +.PHONY: run install uninstall clean -.PHONY: ${TARGET} - -${TARGET}: - go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go +${TARGET}: web/*.pug.go + go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go web/*.pug.go: web/templates/*.pug +ifeq (,$(wildcard $(shell go env GOPATH)/bin/jade)) go install github.com/Joker/jade/cmd/jade@latest +endif go generate web/web.go run: