Removed unused run and clean targets from a Makefile.
This commit is contained in:
parent
025bc6509c
commit
fb891c5603
10
Makefile
10
Makefile
@ -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
|
|
Loading…
Reference in New Issue
Block a user