]> git.eshelyaron.com Git - emacs.git/commitdiff
ELPA as an environment variable
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 15 Sep 2016 22:25:39 +0000 (23:25 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Thu, 15 Sep 2016 22:25:39 +0000 (23:25 +0100)
configure.ac
packages/Makefile.in
packages/admin/package-makefile.el

index 2e750970d69274120494c9d8457e21a239f2db90..65dbf7e550ef44afdcdcafbaaccec64052296a04 100644 (file)
@@ -3755,6 +3755,10 @@ fi
 AC_SUBST(LIBXML2_LIBS)
 AC_SUBST(LIBXML2_CFLAGS)
 
+
+ELPA=""
+AC_SUBST(ELPA)
+
 # Check for mail-locking functions in a "mail" library.  Probably this should
 # have the same check as for liblockfile below.
 AC_CHECK_LIB(mail, maillock, have_mail=yes, have_mail=no)
@@ -5392,6 +5396,7 @@ SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e
 
 AC_SUBST(SUBDIR_MAKEFILES_IN)
 
+
 dnl You might wonder (I did) why epaths.h is generated by running make,
 dnl rather than just letting configure generate it from epaths.in.
 dnl One reason is that the various paths are not fully expanded (see above);
index 528bb8d3a065893cf949e4218a24bcb4692e9f4a..09f1149212aae2eead10c40298c1640ffd96064c 100644 (file)
@@ -2,7 +2,11 @@
 
 
 EMACS= ../src/emacs
-ELPA=../../elpa
+
+
+## This should be coming from autoconf!
+ELPA=/home/phillord/src/git/elpa-git/master
+
 
 
 DIRS=$(filter-out .,$(subst ./,,$(shell find . -maxdepth 1 -type d)))
@@ -17,7 +21,7 @@ check-maybe: check-packages
 WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
 
 makefile-inc.mk: ./admin/package-makefile.el
-       $(EMACS) --batch --load admin/package-makefile.el \
+       ELPA=$(ELPA)   $(EMACS) --batch --load admin/package-makefile.el \
                --funcall package-makefile
 
 include makefile-inc.mk
index 5c600c459f415cbd3f2fe5ddbee6d7090d3c4ae6..2151b7e2e8433bb7eeede32973211b211449f1f5 100644 (file)
@@ -1,6 +1,9 @@
 (require 'seq)
 
-(defvar package-makefile--elpa nil)
+(defvar package-makefile--elpa
+  (when (getenv "ELPA")
+    (concat (getenv "ELPA")
+            "/packages")))
 (defvar package-makefile--log-targets nil)
 (defvar package-makefile--pkg-targets nil)
 
        (package-makefile--pkg-targets
         package-makefile--elpa
         (package-makefile--elpa-dirs
-         package-makefile-0elpa))
+         package-makefile--elpa))
        "\n"
 
        (package-makefile--test-targets
          package-makefile--elpa)))
 
      "ert-summarize: " (mapconcat 'identity package-makefile--log-targets " ")
-     "\n\t$(EMACS) -l ert -f ert-summarize-tests-batch-and-exit $^\n\n"
+     "\n\t$(EMACS) --batch -l ert -f ert-summarize-tests-batch-and-exit $^\n\n"
 
      "pkg-all: " (mapconcat 'identity package-makefile--pkg-targets " ")
      "\n\n"