aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-27 19:42:09 +0000
committerRoland McGrath <roland@gnu.org>2000-03-27 19:42:09 +0000
commit480d827b660a4e13fd5b9a4bacb3df57cad1a5aa (patch)
treef7008331c3b564143156a8d07a5d60c9afb70319 /Makerules
parent22d5fbfe74038c925bae4abbb1a911818a77ee42 (diff)
downloadglibc-480d827b660a4e13fd5b9a4bacb3df57cad1a5aa.zip
glibc-480d827b660a4e13fd5b9a4bacb3df57cad1a5aa.tar.gz
glibc-480d827b660a4e13fd5b9a4bacb3df57cad1a5aa.tar.bz2
2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
* Makeconfig (preprocess-versions): New canned sequence for running cpp on shlib-versions and the like. (soversions.i): Use it. * Makerules (Versions.all, sysd-versions): Use it to preprocess the Versions.def and Versions files.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makerules b/Makerules
index edbf8a5..6f5e433 100644
--- a/Makerules
+++ b/Makerules
@@ -297,7 +297,8 @@ $(common-objpfx)Versions.all: $(..)scripts/firstversions.awk \
{ while read lib version setname; do \
test -z "$$setname" || echo "$$lib : $$setname"; \
done < $(word 2,$^); \
- cat $(filter-out $< $(word 2,$^),$^); \
+ cat $(filter-out $< $(word 2,$^),$^) \
+ | $(preprocess-versions); \
} | LC_ALL=C $(AWK) -f $< > $@T
mv -f $@T $@
$(common-objpfx)sysd-versions: $(common-objpfx)Versions.all \
@@ -306,9 +307,11 @@ $(common-objpfx)sysd-versions: $(common-objpfx)Versions.all \
$(wildcard $(sysdirs:%=%/Versions)) \
$(sysd-versions-force)
{ echo 'sysd-versions-subdirs = $(all-subdirs) $(config-sysdirs)' ; \
- LC_ALL=C $(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
- -v move_if_change='$(move-if-change)' \
- -f $(filter-out $< $(sysd-versions-force),$^); \
+ cat $(filter-out $< $(word 2,$^) $(sysd-versions-force),$^) \
+ | $(preprocess-versions) \
+ | LC_ALL=C $(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
+ -v move_if_change='$(move-if-change)' \
+ -f $(word 2,$^); \
} > $@T
mv -f $@T $@
endif # avoid-generated