]> git.notmuchmail.org Git - notmuch/commitdiff
Install emacs lisp files into a notmuch sub-directory of site-lisp.
authorCarl Worth <cworth@cworth.org>
Tue, 6 Apr 2010 22:05:13 +0000 (15:05 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:30:43 +0000 (18:30 -0700)
Now that we have multiple emacs-lisp source files, it's just more
polite this way.

configure
debian/notmuch.install
emacs/Makefile.local

index fcaa373faa2c5a02f19a0279872a79e5a323974e..21780a6149a1a2b33fc5bdced5f57798ae827524 100755 (executable)
--- a/configure
+++ b/configure
@@ -71,6 +71,7 @@ Fine tuning of some installation directories is available:
        --includedir=DIR        Install header files to DIR [PREFIX/include]
        --mandir=DIR            Install man pages to DIR [PREFIX/share/man]
        --sysconfdir=DIR        Read-only single-machine data [PREFIX/etc]
+       --emacslispdir=DIR      Elisp [PREFIX/share/emacs/site-lisp/notmuch]
 
 Additional options are accepted for compatibility with other
 configure-script calling conventions, but don't do anything yet:
@@ -100,6 +101,8 @@ for option; do
        MANDIR="${option#*=}"
     elif [ "${option%%=*}" = '--sysconfdir' ] ; then
        SYSCONFDIR="${option#*=}"
+    elif [ "${option%%=*}" = '--emacslispdir' ] ; then
+       EMACSLISPDIR="${option#*=}"
     elif [ "${option%%=*}" = '--build' ] ; then
        build_option="${option#*=}"
        case ${build_option} in
@@ -214,10 +217,12 @@ else
     have_valgrind=0
 fi
 
-if pkg-config --modversion emacs > /dev/null 2>&1; then
-    emacs_lispdir=$(pkg-config emacs --variable sitepkglispdir)
-else
-    emacs_lispdir='$(prefix)/share/emacs/site-lisp'
+if [ -z "${EMACSLISPDIR}" ]; then
+    if pkg-config --modversion emacs > /dev/null 2>&1; then
+       EMACSLISPDIR=$(pkg-config emacs --variable sitepkglispdir)/notmuch
+    else
+       EMACSLISPDIR='$(prefix)/share/emacs/site-lisp/notmuch'
+    fi
 fi
 
 printf "Checking if emacs is available... "
@@ -361,7 +366,7 @@ mandir = ${MANDIR:=\$(prefix)/share/man}
 sysconfdir = ${SYSCONFDIR:=\$(prefix)/etc}
 
 # The directory to which emacs lisp files should be installed
-emacs_lispdir=${emacs_lispdir}
+emacslispdir=${EMACSLISPDIR}
 
 # Whether there's an emacs binary available for byte-compiling
 HAVE_EMACS = ${have_emacs}
index f412427819acfbc6fa7e734c6998805bcc78d8c4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-notmuch.el usr/share/emacs/site-lisp/notmuch
index 52aca4efa89ac832838d6ac125f9ca0e71c22a97..e34da0be13e828e8a7f3a5033c1ec23941f6ce06 100644 (file)
@@ -20,10 +20,10 @@ install: install-emacs
 
 .PHONY: install-emacs
 install-emacs:
-       mkdir -p $(DESTDIR)/$(emacs_lispdir)
-       install -m0644 $(emacs_sources) $(DESTDIR)$(emacs_lispdir)
+       mkdir -p $(DESTDIR)$(emacslispdir)
+       install -m0644 $(emacs_sources) $(DESTDIR)$(emacslispdir)
 ifeq ($(HAVE_EMACS),1)
-       install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacs_lispdir)
+       install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacslispdir)
 endif
 
 CLEAN := $(CLEAN) $(emacs_bytecode)