emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108332: Remove leim/Makefile.in's


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108332: Remove leim/Makefile.in's SUBDIRS
Date: Fri, 02 Nov 2012 01:46:50 -0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108332
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Mon 2012-05-21 20:46:40 -0400
message:
  Remove leim/Makefile.in's SUBDIRS
  
  It isn't necessary given MKDIR_P, and I have some vague memory that
  the time-stamping was causing unncessary re-dumping in some instance.
  
  * leim/Makefile.in (SUBDIRS): Remove variable and rule.
  (MKDIR_P): Add it back.
  (all, changed.tit, changed.misc, leim-list.el): Don't depend on SUBDIRS.
  (changed.tit, changed.misc): Ensure output directory exists.
  (distclean): Don't use SUBDIRS.
modified:
  leim/ChangeLog
  leim/Makefile.in
=== modified file 'leim/ChangeLog'
--- a/leim/ChangeLog    2012-05-21 20:13:49 +0000
+++ b/leim/ChangeLog    2012-05-22 00:46:40 +0000
@@ -1,3 +1,12 @@
+2012-05-22  Glenn Morris  <address@hidden>
+
+       * Makefile.in (SUBDIRS): Remove variable and rule.
+       (MKDIR_P): Add it back.
+       (all, changed.tit, changed.misc, leim-list.el):
+       Don't depend on SUBDIRS.
+       (changed.tit, changed.misc): Ensure output directory exists.
+       (distclean): Don't use SUBDIRS.
+
 2012-05-21  Glenn Morris  <address@hidden>
 
        * Makefile.in (install): Remove, let top-level do it.

=== modified file 'leim/Makefile.in'
--- a/leim/Makefile.in  2012-05-21 20:13:49 +0000
+++ b/leim/Makefile.in  2012-05-22 00:46:40 +0000
@@ -39,9 +39,7 @@
 RUN_EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C \
        ${EMACS} -batch --no-site-file --no-site-lisp
 
-# Subdirectories to be made if ${srcdir} is different from the current
-# directory.
-SUBDIRS=quail
+MKDIR_P = @MKDIR_P@
 
 # Files generated from TIT dictionaries for Chinese GB character set.
 TIT_GB=\
@@ -83,11 +81,7 @@
        @echo Compiling $<
        @${RUN_EMACS} -l ${buildlisppath}/international/quail -f 
batch-byte-compile $<
 
-all: ${SUBDIRS} leim-list.el compile-main
-
-${SUBDIRS}:
-       mkdir $@
-       touch stamp-subdir
+all: leim-list.el compile-main
 
 TIT_SOURCES= \
        ${srcdir}/CXTERM-DIC/4Corner.tit \
@@ -107,9 +101,6 @@
 ${CHINESE_TIT}: changed.tit
        @true
 
-## FIXME remove subdirs if possible - time-stamping.
-## Emacs should make the directory if it does not exist.
-
 ## The changed.* files act to serialize this part of the build.
 ## A single Emacs invocation creates all the CHINESE_TIT files.
 ## Otherwise in a parallel build multiple Emacs instances could
@@ -118,7 +109,8 @@
 ## file.  Something like the pattern rule:
 ## quail/%.el: CXTERM-DIC/%.tit
 ## It doesn't seem possible to do this with VPATH and suffix rules.
-changed.tit: ${SUBDIRS} ${TIT_SOURCES}
+changed.tit: ${TIT_SOURCES}
+       @${MKDIR_P} quail
        ${RUN_EMACS} -l ${buildlisppath}/international/titdic-cnv \
          -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \
          echo "changed" > $@
@@ -134,12 +126,13 @@
 ${MISC}: changed.misc
        @true
 
-changed.misc: ${SUBDIRS} ${MISC_SOURCES}
+changed.misc: ${MISC_SOURCES}
+       @${MKDIR_P} quail
        ${RUN_EMACS} -l ${buildlisppath}/international/titdic-cnv \
          -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \
          echo "changed" > $@
 
-leim-list.el: ${SUBDIRS} ${TIT_MISC} ${srcdir}/leim-ext.el
+leim-list.el: ${TIT_MISC} ${srcdir}/leim-ext.el
        rm -f leim-list.el
        if [ x`cd ${srcdir} && /bin/pwd` = x`/bin/pwd` ] ; then \
          ${RUN_EMACS} -l ${buildlisppath}/international/quail \
@@ -184,7 +177,7 @@
        $(setwins); for w in $$wins; do rm -f $$w/*.elc; done
 
 distclean: clean
-       if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
+       -[ `cd ${srcdir} && /bin/pwd` != `/bin/pwd` ] && rm -rf quail
        rm -f Makefile
 
 maintainer-clean: distclean bootstrap-clean


reply via email to

[Prev in Thread] Current Thread [Next in Thread]