summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-13 17:24:03 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-02-13 17:24:03 -0500
commit37ba3b7b8d6c7e092e1744bf596bb89087d0e7be (patch)
tree9b3e4ad62fa87a1064d9e236c89ff5c40c9a6fdb /Makefile
parent234be769e84da9b56181229b18d7dfbe5ac3a0ac (diff)
use template files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0b610be..81b0c2e 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,10 @@ install:
chmod 755 $(DESTDIR)$(PREFIX)/bin/mw $(DESTDIR)$(PREFIX)/bin/mailsync $(DESTDIR)$(PREFIX)/lib/mutt-wizard/openfile
mkdir -p $(DESTDIR)$(PREFIX)/share/mutt-wizard
chmod 755 $(DESTDIR)$(PREFIX)/share/mutt-wizard
- cp -f share/mailcap share/domains.csv share/mutt-wizard.muttrc share/switch.muttrc $(DESTDIR)$(PREFIX)/share/mutt-wizard
- chmod 644 $(DESTDIR)$(PREFIX)/share/mutt-wizard/mailcap $(DESTDIR)$(PREFIX)/share/mutt-wizard/domains.csv $(DESTDIR)$(PREFIX)/share/mutt-wizard/mutt-wizard.muttrc $(DESTDIR)$(PREFIX)/share/mutt-wizard/switch.muttrc
+ for shared in share/*; do \
+ cp -f $$shared $(DESTDIR)$(PREFIX)/share/mutt-wizard; \
+ chmod 644 $(DESTDIR)$(PREFIX)/share/mutt-wizard/$$(basename $(notdir $$shared)); \
+ done
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1
cp -f mailsync.1 $(DESTDIR)$(MANPREFIX)/man1/mailsync.1