Use a stamp file for libc-abis.h rule.
authorRoland McGrath <roland@redhat.com>
Fri, 9 Apr 2010 22:31:45 +0000 (15:31 -0700)
committerRoland McGrath <roland@redhat.com>
Fri, 9 Apr 2010 22:31:45 +0000 (15:31 -0700)
ChangeLog
Makerules

index 7d8f1cded9381372743ec74921615d737ab98b1d..c38784e7c0589e289daaddf358f1c1c9ff9fa675 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-04-09  Roland McGrath  <roland@redhat.com>
 
+       * Makerules ($(common-objpfx)libc-abis.h): Depend on libc-abis.stamp.
+       ($(common-objpfx)libc-abis.stamp): New target, rule moved from
+       libc-abis.h target.  Use a stamp file to avoid repeating no-op
+       move-if-change on every run.
+
        * posix/Makefile (tst-chmod-ARGS): Pass $(objdir), not `pwd`.
 
 2010-04-08  Ulrich Drepper  <drepper@redhat.com>
index bf03b38a9c752d7ad85f0b20c36e46ac0531992c..9bfe55056d31d0af31c371e3627cdc4b1ecea687 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -111,14 +111,16 @@ endif # $(versioning) = yes
 
 ifndef avoid-generated
 before-compile := $(common-objpfx)libc-abis.h $(before-compile)
-$(common-objpfx)libc-abis.h: $(..)scripts/gen-libc-abis \
+$(common-objpfx)libc-abis.h: $(common-objpfx)libc-abis.stamp; @:
+$(common-objpfx)libc-abis.stamp: $(..)scripts/gen-libc-abis \
                             $(firstword $(wildcard $(sysdirs:=/libc-abis)) \
                                         $(..)libc-abis) \
                             $(..)Makerules
        $(SHELL) $< \
                 $(base-machine)-$(config-vendor)-$(config-os) \
-                < $(word 2,$^) > $@T
-       $(move-if-change) $@T $@
+                < $(word 2,$^) > $(@:.stamp=.h)T
+       $(move-if-change) $(@:.stamp=.h)T $(@:.stamp=.h)
+       touch $@
 common-generated += $(common-objpfx)libc-abis.h
 endif # avoid-generated