aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-01-21 21:38:01 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-21 21:38:01 +0100
commit34d36bad0de1f4ba98a68abb3a109c992aede324 (patch)
treecd5f1315ef36bd928e5a8545ec03a8c29c78252e /Makefile
parent07091159169fe6682889cbbdf0a10d9cbb5aa8c8 (diff)
downloadaerc-34d36bad0de1f4ba98a68abb3a109c992aede324.tar.gz
Revert "mk: only install if files changed"
This reverts commit 22ad9e199a6dccf0f5017b3e0bacd3ad01b122e7. This breaks install on macOS: install -m755 -D aerc /usr/local/bin/aerc install: illegal option -- D Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile74
1 files changed, 25 insertions, 49 deletions
diff --git a/Makefile b/Makefile
index fea54901..16bdac41 100644
--- a/Makefile
+++ b/Makefile
@@ -78,55 +78,31 @@ RM?=rm -f
clean:
$(RM) $(DOCS) aerc.conf aerc
-$(DESTDIR)$(BINDIR)/aerc: aerc
- install -m755 -D $< $@
-
-$(DESTDIR)$(MANDIR)/man1/%: %
- install -m644 -D $< $@
-
-$(DESTDIR)$(MANDIR)/man5/%: %
- install -m644 -D $< $@
-
-$(DESTDIR)$(MANDIR)/man7/%: %
- install -m644 -D $< $@
-
-$(DESTDIR)$(SHAREDIR)/aerc.conf: aerc.conf
- install -m644 -D $< $@
-
-$(DESTDIR)$(SHAREDIR)/%.conf: config/%.conf
- install -m644 -D $< $@
-
-$(DESTDIR)$(SHAREDIR)/filters/%: filters/%
- install -m755 -D $< $@
-
-$(DESTDIR)$(SHAREDIR)/templates/%: templates/%
- install -m644 -D $< $@
-
-$(DESTDIR)$(SHAREDIR)/stylesets/default: config/default_styleset
- install -m644 -D $< $@
-
-install: $(DESTDIR)$(BINDIR)/aerc
-install: $(DESTDIR)$(MANDIR)/man1/aerc.1
-install: $(DESTDIR)$(MANDIR)/man1/aerc-search.1
-install: $(DESTDIR)$(MANDIR)/man5/aerc-config.5
-install: $(DESTDIR)$(MANDIR)/man5/aerc-imap.5
-install: $(DESTDIR)$(MANDIR)/man5/aerc-maildir.5
-install: $(DESTDIR)$(MANDIR)/man5/aerc-sendmail.5
-install: $(DESTDIR)$(MANDIR)/man5/aerc-notmuch.5
-install: $(DESTDIR)$(MANDIR)/man5/aerc-smtp.5
-install: $(DESTDIR)$(MANDIR)/man7/aerc-tutorial.7
-install: $(DESTDIR)$(MANDIR)/man7/aerc-templates.7
-install: $(DESTDIR)$(MANDIR)/man7/aerc-stylesets.7
-install: $(DESTDIR)$(SHAREDIR)/accounts.conf
-install: $(DESTDIR)$(SHAREDIR)/aerc.conf
-install: $(DESTDIR)$(SHAREDIR)/binds.conf
-install: $(DESTDIR)$(SHAREDIR)/filters/hldiff
-install: $(DESTDIR)$(SHAREDIR)/filters/html
-install: $(DESTDIR)$(SHAREDIR)/filters/plaintext
-install: $(DESTDIR)$(SHAREDIR)/templates/new_message
-install: $(DESTDIR)$(SHAREDIR)/templates/quoted_reply
-install: $(DESTDIR)$(SHAREDIR)/templates/forward_as_body
-install: $(DESTDIR)$(SHAREDIR)/stylesets/default
+install: all
+ mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man7 \
+ $(DESTDIR)$(SHAREDIR) $(DESTDIR)$(SHAREDIR)/filters $(DESTDIR)$(SHAREDIR)/templates $(DESTDIR)$(SHAREDIR)/stylesets
+ install -m755 aerc $(DESTDIR)$(BINDIR)/aerc
+ install -m644 aerc.1 $(DESTDIR)$(MANDIR)/man1/aerc.1
+ install -m644 aerc-search.1 $(DESTDIR)$(MANDIR)/man1/aerc-search.1
+ install -m644 aerc-config.5 $(DESTDIR)$(MANDIR)/man5/aerc-config.5
+ install -m644 aerc-imap.5 $(DESTDIR)$(MANDIR)/man5/aerc-imap.5
+ install -m644 aerc-maildir.5 $(DESTDIR)$(MANDIR)/man5/aerc-maildir.5
+ install -m644 aerc-sendmail.5 $(DESTDIR)$(MANDIR)/man5/aerc-sendmail.5
+ install -m644 aerc-notmuch.5 $(DESTDIR)$(MANDIR)/man5/aerc-notmuch.5
+ install -m644 aerc-smtp.5 $(DESTDIR)$(MANDIR)/man5/aerc-smtp.5
+ install -m644 aerc-tutorial.7 $(DESTDIR)$(MANDIR)/man7/aerc-tutorial.7
+ install -m644 aerc-templates.7 $(DESTDIR)$(MANDIR)/man7/aerc-templates.7
+ install -m644 aerc-stylesets.7 $(DESTDIR)$(MANDIR)/man7/aerc-stylesets.7
+ install -m644 config/accounts.conf $(DESTDIR)$(SHAREDIR)/accounts.conf
+ install -m644 aerc.conf $(DESTDIR)$(SHAREDIR)/aerc.conf
+ install -m644 config/binds.conf $(DESTDIR)$(SHAREDIR)/binds.conf
+ install -m755 filters/hldiff $(DESTDIR)$(SHAREDIR)/filters/hldiff
+ install -m755 filters/html $(DESTDIR)$(SHAREDIR)/filters/html
+ install -m755 filters/plaintext $(DESTDIR)$(SHAREDIR)/filters/plaintext
+ install -m644 templates/new_message $(DESTDIR)$(SHAREDIR)/templates/new_message
+ install -m644 templates/quoted_reply $(DESTDIR)$(SHAREDIR)/templates/quoted_reply
+ install -m644 templates/forward_as_body $(DESTDIR)$(SHAREDIR)/templates/forward_as_body
+ install -m644 config/default_styleset $(DESTDIR)$(SHAREDIR)/stylesets/default
RMDIR_IF_EMPTY:=sh -c '\
if test -d $$0 && ! ls -1qA $$0 | grep -q . ; then \