2019-04-22 03:47:27 +02:00
|
|
|
.POSIX:
|
|
|
|
|
2019-04-23 15:30:04 +02:00
|
|
|
PREFIX = /usr
|
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
|
2019-05-02 03:21:02 +02:00
|
|
|
for script in bin/*; do \
|
|
|
|
cp -f $$script $(DESTDIR)$(PREFIX)/bin/; \
|
|
|
|
chmod 755 $(DESTDIR)$(PREFIX)/$$script; \
|
|
|
|
done
|
2019-04-23 15:08:25 +02:00
|
|
|
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
|
2019-05-02 03:21:02 +02:00
|
|
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
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:
|
2019-05-02 03:21:02 +02:00
|
|
|
for script in bin/*; do \
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/$$script; \
|
|
|
|
done
|
2019-04-23 15:08:25 +02:00
|
|
|
rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard
|
2019-04-22 03:47:27 +02:00
|
|
|
|
|
|
|
.PHONY: install uninstall
|