1
0

Added web/*.jade.go target to Makefile.

This commit is contained in:
Alexander Andreev 2023-05-26 23:55:15 +04:00
parent 898642dfa5
commit 84e25ae7a2
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
clean:
rm -f web/*.jade.go
go clean