summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-03-31 22:59:30 -0700
committerCarl Worth <cworth@cworth.org>2010-03-31 22:59:30 -0700
commit8c671a17c04a4fa2104864cea8d18e84a7b516e9 (patch)
tree99f60d63a2623f7198e86f975c9012d22ca7b0e4
parent7b52b2c318e449c73146bd48c7f32145f158f3f5 (diff)
Makefiles: Eliminate shell for loops in rule definitions.
These just made the output look so ugly, and weren't actually making the rule definitions any simpler. Good riddance.
-rw-r--r--Makefile.local9
-rw-r--r--emacs/Makefile.local10
2 files changed, 6 insertions, 13 deletions
diff --git a/Makefile.local b/Makefile.local
index 135d26e..2efef41 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -105,11 +105,10 @@ notmuch.1.gz: notmuch.1
$(call quiet,gzip) --stdout $^ > $@
install: all notmuch.1.gz
- for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(libdir)/ \
- $(DESTDIR)$(prefix)/include/ $(DESTDIR)$(prefix)/share/man/man1 ; \
- do \
- install -d $$d ; \
- done ;
+ install -d $(DESTDIR)$(prefix)/bin/
+ install -d $(DESTDIR)$(libdir)/
+ install -d $(DESTDIR)$(prefix)/include/
+ install -d $(DESTDIR)$(prefix)/share/man/man1
install notmuch $(DESTDIR)$(prefix)/bin/
install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
ifeq ($(MAKECMDGOALS), install)
diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index 17ede86..6e7d2af 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -6,14 +6,8 @@ emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
emacs: $(emacs_bytecode)
install-emacs: install emacs
- for d in $(DESTDIR)/$(emacs_lispdir) ; \
- do \
- install -d $$d ; \
- done ;
- for f in $(emacs_sources) $(emacs_bytecode); \
- do \
- install -m0644 $$f $(DESTDIR)$(emacs_lispdir) ;\
- done;
+ install -d $(DESTDIR)/$(emacs_lispdir)
+ install -m0644 $(emacs_sources) $(emacs_bytecode) $(DESTDIR)$(emacs_lispdir)
@echo ""
@echo "The notmuch emacs client is now installed."
@echo ""