diff --git a/Makefile b/Makefile index d335b84..29310e3 100755 --- a/Makefile +++ b/Makefile @@ -13,11 +13,13 @@ LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo .PHONY: run install uninstall clean -${TARGET}: +${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: