Added web/*.jade.go target to Makefile.
This commit is contained in:
parent
898642dfa5
commit
84e25ae7a2
12
Makefile
12
Makefile
@ -11,15 +11,15 @@ VERSION=23.20.0
|
|||||||
FLAGS:=-modcacherw -trimpath
|
FLAGS:=-modcacherw -trimpath
|
||||||
LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
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
|
.PHONY: ${TARGET} install uninstall install-jade run
|
||||||
|
|
||||||
${TARGET}:
|
${TARGET}:
|
||||||
go generate web/web.go
|
|
||||||
go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.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 install github.com/Joker/jade/cmd/jade@latest
|
||||||
|
go generate web/web.go
|
||||||
|
|
||||||
run:
|
run:
|
||||||
bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml
|
bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml
|
||||||
@ -40,4 +40,8 @@ uninstall:
|
|||||||
rm ${DESTDIR}/etc/dwelling/radio.liq
|
rm ${DESTDIR}/etc/dwelling/radio.liq
|
||||||
rm ${DESTDIR}/etc/logrotate.d/${TARGET}
|
rm ${DESTDIR}/etc/logrotate.d/${TARGET}
|
||||||
|
|
||||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f web/*.jade.go
|
||||||
|
go clean
|
Loading…
Reference in New Issue
Block a user