Added OS dependent un-/installation.

This commit is contained in:
Alexander Andreev 2023-12-09 19:26:27 +04:00
parent eb4d1525a2
commit 87a787da84
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -23,10 +23,16 @@ else
endif endif
install: install:
ifeq ($(shell go env GOOS),windows)
else
install -Dm 0755 bin/${EXEC_NAME} ${DESTDIR}${PREFIX}/bin/${EXEC_NAME} install -Dm 0755 bin/${EXEC_NAME} ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
endif
uninstall: uninstall:
ifeq ($(shell go env GOOS),windows)
else
rm ${DESTDIR}${PREFIX}/bin/${EXEC_NAME} rm ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
endif
clean: clean:
rm -f bin/* rm -f bin/*