Added web/*.jade.go target to Makefile.
This commit is contained in:
parent
898642dfa5
commit
84e25ae7a2
10
Makefile
10
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
|
||||||
@ -41,3 +41,7 @@ uninstall:
|
|||||||
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