]> git.eshelyaron.com Git - emacs.git/commitdiff
autoconf support
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 15 Sep 2016 08:37:50 +0000 (09:37 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Thu, 15 Sep 2016 08:37:50 +0000 (09:37 +0100)
configure.ac
packages/GNUmakefile [deleted file]
packages/Makefile.in [new file with mode: 0644]
packages/README.org
packages/admin/package-makefile.el

index c94ecb629efac57c6a65c2f6db3ff42624abe8b4..2e750970d69274120494c9d8457e21a239f2db90 100644 (file)
@@ -5361,12 +5361,12 @@ dnl This will work, but you get a config.status that is not quite right
 dnl (see http://lists.gnu.org/archive/html/bug-autoconf/2008-08/msg00028.html).
 dnl That doesn't have any obvious consequences for Emacs, but on the whole
 dnl it seems better to just live with the duplication.
-SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile"
+SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile packages/Makefile"
 
 AC_CONFIG_FILES([Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \
        doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \
        doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile \
-       leim/Makefile nextstep/Makefile nt/Makefile])
+       leim/Makefile nextstep/Makefile nt/Makefile packages/Makefile])
 
 dnl test/ is not present in release tarfiles.
 opt_makefile=test/Makefile
diff --git a/packages/GNUmakefile b/packages/GNUmakefile
deleted file mode 100644 (file)
index a19d361..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-## This file is called GNUmakefile because Makefile is git ignored. Rename
-## when this is autoconf'd
-
-
-EMACS=../src/emacs
-ELPA=../../elpa
-
-
-DIRS=$(filter-out .,$(subst ./,,$(shell find . -maxdepth 1 -type d)))
-
-## dependent on makefile
-all: pkg-all $(EMACS)
-
-check: cleanlog check-packages ert-summarize
-
-check-maybe: check-packages
-
-WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
-
-gnumakefile-inc.mk: ./admin/package-makefile.el
-       $(EMACS) --batch --load admin/package-makefile.el \
-               --funcall package-makefile
-
-include gnumakefile-inc.mk
-
-cleanlog:
-       find . -name "*log" -exec rm -v {} \;
-
-clean: cleanlog
-       find . -name "*pkg.el" -exec rm -v {} \;
-       find . -name "*-autoloads.el" -exec rm -v {} \;
-       find . -name "*elc" -exec rm -v {} \;
-
-
-.PHONY: check clean all
diff --git a/packages/Makefile.in b/packages/Makefile.in
new file mode 100644 (file)
index 0000000..e944de8
--- /dev/null
@@ -0,0 +1,34 @@
+### @configure_input@
+
+
+EMACS= ../src/emacs
+ELPA=../../elpa
+
+
+DIRS=$(filter-out .,$(subst ./,,$(shell find . -maxdepth 1 -type d)))
+
+## dependent on makefile
+all: pkg-all $(EMACS)
+
+check: cleanlog check-packages ert-summarize
+
+check-maybe: check-packages
+
+WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
+
+gnumakefile-inc.mk: ./admin/package-makefile.el
+       $(EMACS) --batch --load admin/package-makefile.el \
+               --funcall package-makefile
+
+include makefile-inc.mk
+
+cleanlog:
+       find . -name "*log" -exec rm -v {} \;
+
+clean: cleanlog
+       find . -name "*pkg.el" -exec rm -v {} \;
+       find . -name "*-autoloads.el" -exec rm -v {} \;
+       find . -name "*elc" -exec rm -v {} \;
+
+
+.PHONY: check clean all
index 719b13dce278d73aa016706bd3b16c5aa8dea469..9c5fa7b3c28f88f0d3abf795c2205172d5aba21d 100644 (file)
@@ -49,8 +49,6 @@ disabled. Most of these do not have regular test file locations at the moment.
 
 There is no support for make install.
 
-There is no support for autoconf.
-
 There is no support for info.
 
 Files in the "admin" directory should probably be in the emacs-root admin.
index 2f0086ba50e2ed932b0f8c1df7c2808a0abfcfa0..3ea4edae964f93f62d05a62826acbd8a88e2135c 100644 (file)
   (with-temp-buffer
     (insert
      (package-makefile--1))
-    (write-file "gnumakefile-inc.mk")))
+    (write-file "makefile-inc.mk")))
 
 ;; example: core/example/example-pkg.el
 ;; core/example/example-pkg.el