1
0

In Makefile make run and install targets to compile a program first.

This commit is contained in:
Alexander Andreev 2024-12-27 16:30:09 +04:00
parent fdec858f48
commit cec25f6c6a
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -22,10 +22,10 @@ ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ))
endif
$(shell go env GOPATH)/bin/templ generate
run:
run: | ${TARGET}
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 0644 init/systemd/${TARGET}.service ${DESTDIR}/${SYSDDIR}/${TARGET}.service