]> git.notmuchmail.org Git - notmuch/commitdiff
Makefiles: Eliminate shell for loops in rule definitions.
authorCarl Worth <cworth@cworth.org>
Thu, 1 Apr 2010 05:59:30 +0000 (22:59 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 1 Apr 2010 05:59:30 +0000 (22:59 -0700)
These just made the output look so ugly, and weren't actually making
the rule definitions any simpler. Good riddance.

Makefile.local
emacs/Makefile.local

index 135d26e8daa816d766c3fdf015cbd87e45a493bd..2efef4158efb5dd326f3bb59b751339c2fde0074 100644 (file)
@@ -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)
index 17ede8635e053326e51c83dd3ac83ab6433c73a1..6e7d2afd1391400f5f62bb1d2d9fe99b07b2565b 100644 (file)
@@ -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 ""