From 87a787da84f115e13a9a4e99ca544618bc86db14 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 9 Dec 2023 19:26:27 +0400 Subject: [PATCH] Added OS dependent un-/installation. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index b0aab1c..5d5727f 100755 --- a/Makefile +++ b/Makefile @@ -23,10 +23,16 @@ else endif install: +ifeq ($(shell go env GOOS),windows) +else install -Dm 0755 bin/${EXEC_NAME} ${DESTDIR}${PREFIX}/bin/${EXEC_NAME} +endif uninstall: +ifeq ($(shell go env GOOS),windows) +else rm ${DESTDIR}${PREFIX}/bin/${EXEC_NAME} +endif clean: rm -f bin/* \ No newline at end of file