1
0

Removed unused run and clean targets from a Makefile.

This commit is contained in:
Alexander Andreev 2022-08-31 00:50:01 +04:00
parent 025bc6509c
commit fb891c5603
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -8,14 +8,11 @@ LDFLAGS=-ldflags "-s -w -X main.version=22.35.1" -tags osusergo,netgo
all: ${TARGET}
.PHONY: ${TARGET} run install uninstall clean
.PHONY: ${TARGET} install uninstall
${TARGET}:
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
run:
bin/${TARGET} -conf configs/config.yaml
install:
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
install -Dm 0644 configs/config.yaml ${DESTDIR}etc/dwelling/radio.yaml
@ -32,6 +29,3 @@ uninstall:
rm ${DESTDIR}etc/logrotate.d/${TARGET}
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
clean:
go clean