Skip to content

Commit

Permalink
Use a stamp file for libc-abis.h rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Apr 9, 2010
1 parent 4ae73ca commit 17ad387
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
8 changes: 5 additions & 3 deletions Makerules
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 17ad387

Please sign in to comment.