In Makefile make run and install targets to compile a program first.
This commit is contained in:
parent
fdec858f48
commit
cec25f6c6a
4
Makefile
4
Makefile
@ -22,10 +22,10 @@ ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ))
|
|||||||
endif
|
endif
|
||||||
$(shell go env GOPATH)/bin/templ generate
|
$(shell go env GOPATH)/bin/templ generate
|
||||||
|
|
||||||
run:
|
run: | ${TARGET}
|
||||||
bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135
|
bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135
|
||||||
|
|
||||||
install:
|
install: | ${TARGET}
|
||||||
install -Dm 0755 bin/${TARGET} ${DESTDIR}${PREFIX}/bin/${TARGET}
|
install -Dm 0755 bin/${TARGET} ${DESTDIR}${PREFIX}/bin/${TARGET}
|
||||||
|
|
||||||
install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}/${SYSDDIR}/${TARGET}.service
|
install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}/${SYSDDIR}/${TARGET}.service
|
||||||
|
Loading…
Reference in New Issue
Block a user