From f9327c0a5105b42a6920458015553454b21eb92b Mon Sep 17 00:00:00 2001 From: makeworld Date: Sat, 13 Mar 2021 11:44:04 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Create=20PREFIX=20dir=20if=20nee?= =?UTF-8?q?ded=20and=20use=20command=20vars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/makeworld-the-better-one/gemget/issues/17#issuecomment-797795676 --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3738545..b7d160f 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,10 @@ clean: .PHONY: install install: amfora amfora.desktop - install -m 755 amfora $(PREFIX)/bin/amfora - install -m 644 amfora.desktop $(PREFIX)/share/applications/amfora.desktop + $(INSTALL) -d $(PREFIX)/bin/ + $(INSTALL) -m 755 amfora $(PREFIX)/bin/amfora + $(INSTALL) -d $(PREFIX)/share/applications/ + $(INSTALL) -m 644 amfora.desktop $(PREFIX)/share/applications/amfora.desktop .PHONY: uninstall uninstall: @@ -32,4 +34,4 @@ uninstall: # Development helpers .PHONY: fmt fmt: - go fmt ./... + $(GO) fmt ./...