1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-19 19:25:24 +00:00

🔨 Create PREFIX dir if needed and use command vars

https://github.com/makeworld-the-better-one/gemget/issues/17#issuecomment-797795676
This commit is contained in:
makeworld 2021-03-13 11:44:04 -05:00
parent 703e853834
commit f9327c0a51

View File

@ -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 ./...