Makefile: Add a simple target for "make install".
authorCarl Worth <cworth@cworth.org>
Fri, 30 Oct 2009 19:00:55 +0000 (12:00 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 30 Oct 2009 19:00:55 +0000 (12:00 -0700)
The more I do here, the less I see the need for autotools.

Makefile

index a1a7a15ce523eaa9e82f586a146ec589bab69cca..26ab8da8e748b32beb143e4f92d7ab02707a5eb2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,5 +41,9 @@ Makefile.dep: *.c *.cc
        $(CXX) -M $(CPPFLAGS) $(CDEPENDS_FLAGS) $(CXXDEPENDS_FLAGS) $^ > $@
 -include Makefile.dep
 
+install:
+       install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
+       install -C -D notmuch-completion.bash $(DESTDIR)/etc/bash_completion.d/notmuch
+
 clean:
        rm -f $(PROGS) *.o Makefile.dep