summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-21 21:47:27 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-21 21:47:27 -0400
commita947bffeba14c7f724b6c16757a6732d4eba420b (patch)
tree597fe2ae366a6349be5a479a5310d2ca654832fe /Makefile
parent4828988474a20471d4fc2290eb15c6460f672e19 (diff)
makefile added
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d925a7e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+.POSIX:
+
+PREFIX = /usr/local
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f bin/mw $(DESTDIR)$(PREFIX)/bin
+ chmod 755 $(DESTDIR)$(PREFIX)/bin/mw
+ cp -f bin/openfile $(DESTDIR)$(PREFIX)/bin
+ chmod 755 $(DESTDIR)$(PREFIX)/bin/openfile
+ cp -f bin/muttimage $(DESTDIR)$(PREFIX)/bin
+ 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 muttrc /usr/share/mutt-wizard
+ cp -f domains.csv /usr/share/mutt-wizard
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/mw
+ rm -f $(DESTDIR)$(PREFIX)/bin/mailsync
+ rm -f $(DESTDIR)$(PREFIX)/bin/openfile
+ rm -f $(DESTDIR)$(PREFIX)/bin/muttimage
+ rm -rf /usr/share/mutt-wizard
+
+.PHONY: install uninstall