From 17ad3877276b37af45c380b07b975406cf2e95de Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 9 Apr 2010 15:31:45 -0700 Subject: Use a stamp file for libc-abis.h rule. --- Makerules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index bf03b38..9bfe550 100644 --- 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 -- cgit v1.1