]> code.delx.au - gnu-emacs/commitdiff
No need for configure to create etc/ and lisp/ any more
authorGlenn Morris <rgm@gnu.org>
Tue, 23 Jul 2013 23:00:43 +0000 (19:00 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 23 Jul 2013 23:00:43 +0000 (19:00 -0400)
* configure.ac (etc, lisp): No need to create specially.
Configure already creates lisp when generating lisp/Makefile;
src/Makefile now creates etc when needed.

* src/Makefile.in ($(etc)/DOC, temacs$(EXEEXT)): Ensure etc/ exists.

ChangeLog
configure.ac
src/ChangeLog
src/Makefile.in

index fe8b3da0690633e64922471ea2f8676efa8ac8b9..ce3a922670a01fe7cba84240fe2edd886c4b827e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-23  Glenn Morris  <rgm@gnu.org>
+
+       * configure.ac (etc, lisp): No need to create specially.
+       Configure already creates lisp, src/Makefile now creates etc.
+
 2013-07-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port to GNU/Linux systems with tinfo but not ncurses.
index f48822480e4607e2c45ca55c90cf6f3c4975582f..c58c283049c589e722c584d564e447a386f2a6f7 100644 (file)
@@ -4854,13 +4854,6 @@ SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e
 
 AC_SUBST(SUBDIR_MAKEFILES_IN)
 
-dnl Make the necessary directories, if they don't exist.
-AC_CONFIG_COMMANDS([mkdirs], [
-for dir in etc lisp ; do
-  test -d ${dir} || mkdir ${dir}
-done
-])
-
 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 8a51744ba4b6caadbe1087a81fce5c9e6cf306a2..30cc0dcdac62d29ab74ae97524e435cba8a9fb20 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-23  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in ($(etc)/DOC, temacs$(EXEEXT)): Ensure etc/ exists.
+
 2013-07-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port to GNU/Linux systems with tinfo but not ncurses.
index 066507580b44b3eba7798438511f1c7fa5faac7e..65927ba236ccadf779e9aaa43f30043f780ac2f7 100644 (file)
@@ -469,6 +469,7 @@ emacs$(EXEEXT): temacs$(EXEEXT) $(ADDSECTION) \
 ## in the contents of the DOC file.
 ##
 $(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
+       $(MKDIR_P) $(etc)
        -rm -f $(etc)/DOC
        $(libsrc)/make-docfile -d $(srcdir) $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
        $(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) `sed -n -e 's| \\\\||' -e 's|^[   ]*$$(lispsource)/||p' $(srcdir)/lisp.mk`
@@ -497,10 +498,15 @@ $(ALLOBJS): globals.h
 $(lib)/libgnu.a: $(config_h)
        cd $(lib) && $(MAKE) libgnu.a
 
+## We have to create $(etc) here because init_cmdargs tests its
+## existence when setting Vinstallation_directory (FIXME?).
+## This goes on to affect various things, and the emacs binary fails
+## to start if Vinstallation_directory has the wrong value.
 temacs$(EXEEXT): stamp-oldxmenu $(ALLOBJS) \
                 $(lib)/libgnu.a $(EMACSRES)
        $(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
          -o temacs $(ALLOBJS) $(lib)/libgnu.a $(W32_RES_LINK) $(LIBES)
+       $(MKDIR_P) $(etc)
        $(TEMACS_POST_LINK)
        test "$(CANNOT_DUMP)" = "yes" || \
          test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT)