Browse Source

loop in makefile

tags/v3.1
Luke Smith 5 years ago
parent
commit
8d38c10a20
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 8 additions and 13 deletions
  1. +8
    -13
      Makefile

+ 8
- 13
Makefile View File

@@ -5,26 +5,21 @@ MANPREFIX = $(PREFIX)/share/man

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
for script in bin/*; do \
cp -f $$script $(DESTDIR)$(PREFIX)/bin/; \
chmod 755 $(DESTDIR)$(PREFIX)/$$script; \
done
mkdir -p $(DESTDIR)$(PREFIX)/share/mutt-wizard
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
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
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1

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
for script in bin/*; do \
rm -f $(DESTDIR)$(PREFIX)/bin/$$script; \
done
rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard

.PHONY: install uninstall

Loading…
Cancel
Save