emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r104362: Small further clean-up in li


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104362: Small further clean-up in lib-src/Makefile.in
Date: Tue, 24 May 2011 19:33:35 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104362
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2011-05-24 19:33:35 -0700
message:
  Small further clean-up in lib-src/Makefile.in
  
  * lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule).
  (insrcdir): New.
  (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
  Use $insrcdir to suppress unaesthetic ignored errors.
  (clean): Simplify list of things to delete.
modified:
  lib-src/ChangeLog
  lib-src/Makefile.in
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2011-05-25 01:32:34 +0000
+++ b/lib-src/ChangeLog 2011-05-25 02:33:35 +0000
@@ -1,5 +1,11 @@
 2011-05-25  Glenn Morris  <address@hidden>
 
+       * Makefile.in (.c.o): Remove (every .o file has an explicit rule).
+       (insrcdir): New.
+       (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
+       Use $insrcdir to suppress unaesthetic ignored errors.
+       (clean): Simplify list of things to delete.
+
        * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.
 
        * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove.  Replace by expansion.

=== modified file 'lib-src/Makefile.in'
--- a/lib-src/Makefile.in       2011-05-25 01:32:34 +0000
+++ b/lib-src/Makefile.in       2011-05-25 02:33:35 +0000
@@ -178,33 +178,27 @@
 LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM)
 $(EXE_FILES): ../lib/libgnu.a
 
-## This is the default compilation command.
-## But we should never rely on it, because some make version failed to
-## find it for getopt.o.
-## Using an explicit command made it work.
-.c.o:
-       ${CC} -c ${CPP_CFLAGS} $<
-
 all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} 
${INSTALLABLE_SCRIPTS}  ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS}
 
 ## These targets copy the scripts into the build directory so that
 ## they can be run from there in an uninstalled Emacs.
-## The "-" is prepended because some versions of cp barf when srcdir
-## is the current directory, and thus the file will be copied into itself.
+## Nothing to do if pwd = srcdir.
+insrcdir=[ "`/bin/pwd`" = "`(cd $(srcdir) && /bin/pwd)`" ]
+
 stamp-rcs2log: $(srcdir)/rcs2log
-       -cp -p $(srcdir)/rcs2log rcs2log
+       $(insrcdir) || cp -p $(srcdir)/rcs2log rcs2log
        touch $@
 
 stamp-rcs-checkin: $(srcdir)/rcs-checkin
-       -cp -p $(srcdir)/rcs-checkin rcs-checkin
+       $(insrcdir) || cp -p $(srcdir)/rcs-checkin rcs-checkin
        touch $@
 
 stamp-grep-changelog: $(srcdir)/grep-changelog
-       -cp -p $(srcdir)/grep-changelog grep-changelog
+       $(insrcdir) || cp -p $(srcdir)/grep-changelog grep-changelog
        touch $@
 
 stamp-vcdiff: $(srcdir)/vcdiff
-       -cp -p $(srcdir)/vcdiff vcdiff
+       $(insrcdir) || cp -p $(srcdir)/vcdiff vcdiff
        touch $@
 
 ## Only used if we need blessmail, but no harm in always defining.
@@ -282,7 +276,7 @@
 
 clean: mostlyclean
        -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
-       -rm -f fns*.el *.tab.c *.tab.h stamp-*
+       -rm -f ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS}
 
 distclean: clean
        -rm -f TAGS


reply via email to

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