Makefile: Conditionalize the "make install" message.
authorCarl Worth <cworth@cworth.org>
Wed, 10 Mar 2010 18:48:47 +0000 (10:48 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 10 Mar 2010 18:48:47 +0000 (10:48 -0800)
This is the same approach as with the 'all' target previously.

Makefile.local

index 6d29790b8c443b4aa71c848116ac49bce7f2cf90..3c2a629963ffad204a8f5e3c9006ae55e722bb12 100644 (file)
@@ -33,6 +33,7 @@ install: all notmuch.1.gz
        done ;
        install notmuch $(DESTDIR)$(prefix)/bin/
        install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
+ifeq ($(MAKECMDGOALS), install)
        @echo ""
        @echo "Notmuch is now installed."
        @echo ""
@@ -42,6 +43,8 @@ install: all notmuch.1.gz
        @echo " make install-emacs"
        @echo " make install-bash"
        @echo " make install-zsh"
+       @echo ""
+endif
 
 install-desktop:
        install -d $(DESTDIR)$(desktop_dir)