mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-21 23:19:15 +03:00
Makefile: support DESTDIR (#275)
This commit is contained in:
parent
b58a520ac1
commit
be2fe883cb
12
Makefile
12
Makefile
@ -21,15 +21,15 @@ clean:
|
|||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: amfora amfora.desktop
|
install: amfora amfora.desktop
|
||||||
$(INSTALL) -d $(PREFIX)/bin/
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
|
||||||
$(INSTALL) -m 755 amfora $(PREFIX)/bin/amfora
|
$(INSTALL) -m 755 amfora $(DESTDIR)$(PREFIX)/bin/amfora
|
||||||
$(INSTALL) -d $(PREFIX)/share/applications/
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/applications/
|
||||||
$(INSTALL) -m 644 amfora.desktop $(PREFIX)/share/applications/amfora.desktop
|
$(INSTALL) -m 644 amfora.desktop $(DESTDIR)$(PREFIX)/share/applications/amfora.desktop
|
||||||
|
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) -f $(PREFIX)/bin/amfora
|
$(RM) -f $(DESTDIR)$(PREFIX)/bin/amfora
|
||||||
$(RM) -f $(PREFIX)/share/applications/amfora.desktop
|
$(RM) -f $(DESTDIR)$(PREFIX)/share/applications/amfora.desktop
|
||||||
|
|
||||||
# Development helpers
|
# Development helpers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user