diff --git a/Makefile b/Makefile index d72512b..b98b59e 100755 --- a/Makefile +++ b/Makefile @@ -11,15 +11,15 @@ VERSION=23.20.0 FLAGS:=-modcacherw -trimpath LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo -all: ${TARGET} +all: web/*.jade.go ${TARGET} .PHONY: ${TARGET} install uninstall install-jade run ${TARGET}: - go generate web/web.go go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go -install-jade: +web/*.jade.go: web/templates/*.pug go install github.com/Joker/jade/cmd/jade@latest + go generate web/web.go run: bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml @@ -40,4 +40,8 @@ uninstall: rm ${DESTDIR}/etc/dwelling/radio.liq rm ${DESTDIR}/etc/logrotate.d/${TARGET} - rm ${DESTDIR}${SYSDDIR}/${TARGET}.service \ No newline at end of file + rm ${DESTDIR}${SYSDDIR}/${TARGET}.service + +clean: + rm -f web/*.jade.go + go clean \ No newline at end of file