Makefile.in (macro_list): Use move-if-change to avoid spurious rebuilds.
authorGeoffrey Keating <geoffk@apple.com>
Fri, 12 Nov 2004 19:07:54 +0000 (19:07 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 12 Nov 2004 19:07:54 +0000 (19:07 +0000)
* Makefile.in (macro_list): Use move-if-change to avoid spurious
rebuilds.

From-SVN: r90535

gcc/ChangeLog
gcc/Makefile.in

index 371046337db59b828de1e9c7d8dfc348883187b4..2b339876c7ec421e1589a36c4cdec59da542ec22 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-11  Geoffrey Keating  <geoffk@apple.com>
+
+       * Makefile.in (macro_list): Use move-if-change to avoid spurious
+       rebuilds.
+
 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/18416
index 29fe6c1b009ef713e6d994c96c854bb775143b86..359b7125c1600a6aef7b9317547be11575b7d6e2 100644 (file)
@@ -2792,7 +2792,8 @@ macro_list : $(GCC_PASSES)
        echo | $(GCC_FOR_TARGET) -E -dM - | \
          sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
                s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
-         sort -u > $@
+         sort -u > tmp-$@
+       $(SHELL) $(srcdir)/../move-if-change tmp-$@ $@
 
 # Build fixed copies of system files.
 stmp-fixinc: gsyslimits.h macro_list \