2019-04-22 03:47:27 +02:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
PREFIX = /usr/local
|
2019-04-22 18:13:45 +02:00
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
2019-04-22 03:47:27 +02:00
|
|
|
|
|
|
|
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
|
2019-04-22 18:13:45 +02:00
|
|
|
cp -f mutt-wizard.muttrc /usr/share/mutt-wizard
|
2019-04-22 03:47:27 +02:00
|
|
|
cp -f domains.csv /usr/share/mutt-wizard
|
2019-04-22 18:13:45 +02:00
|
|
|
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1
|
2019-04-22 03:47:27 +02:00
|
|
|
|
|
|
|
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
|