summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-23 09:25:46 -0400
committerGitHub <noreply@github.com>2019-04-23 09:25:46 -0400
commit56627dcc2d792455f4c9a0a8f8486e15a34c3a89 (patch)
tree33de9b4ead7b30a876603f555f7768a541cf217b
parentdbb68536393fbe62122339c446af3f21540cab35 (diff)
parent61e6befc56c09da72ccb3369616d45b9eb18d259 (diff)
Merge pull request #142 from Kr1ss-XD/master
Makefile: make all install paths configurable
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b10fcb9..c5d2a13 100644
--- a/Makefile
+++ b/Makefile
@@ -13,10 +13,10 @@ install:
chmod 755 $(DESTDIR)$(PREFIX)/bin/muttimage
cp -f bin/mailsync $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/mailsync
- mkdir -p /usr/share/mutt-wizard
- cp -f mailcap /usr/share/mutt-wizard
- cp -f mutt-wizard.muttrc /usr/share/mutt-wizard
- cp -f domains.csv /usr/share/mutt-wizard
+ mkdir -p $(DESTDIR)$(PREFIX)/share/mutt-wizard
+ cp -f mailcap $(DESTDIR)$(PREFIX)/share/mutt-wizard
+ cp -f mutt-wizard.muttrc $(DESTDIR)$(PREFIX)/share/mutt-wizard
+ cp -f domains.csv $(DESTDIR)$(PREFIX)/share/mutt-wizard
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1
uninstall:
@@ -24,6 +24,6 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/mailsync
rm -f $(DESTDIR)$(PREFIX)/bin/openfile
rm -f $(DESTDIR)$(PREFIX)/bin/muttimage
- rm -rf /usr/share/mutt-wizard
+ rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard
.PHONY: install uninstall