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} all: ${TARGET}
.PHONY: ${TARGET} run install uninstall clean .PHONY: ${TARGET} install uninstall
${TARGET}: ${TARGET}:
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
run:
bin/${TARGET} -conf configs/config.yaml
install: install:
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
install -Dm 0644 configs/config.yaml ${DESTDIR}etc/dwelling/radio.yaml install -Dm 0644 configs/config.yaml ${DESTDIR}etc/dwelling/radio.yaml
@ -31,7 +28,4 @@ uninstall:
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
rm ${DESTDIR}etc/logrotate.d/${TARGET} rm ${DESTDIR}etc/logrotate.d/${TARGET}
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
clean:
go clean