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
|
||||
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
|
||||
@ -41,3 +41,7 @@ uninstall:
|
||||
rm ${DESTDIR}/etc/logrotate.d/${TARGET}
|
||||
|
||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
||||
|
||||
clean:
|
||||
rm -f web/*.jade.go
|
||||
go clean
|
Loading…
Reference in New Issue
Block a user