($(common-objpfx)sysd-versions): Expect awk script in
authordrepper <drepper>
Wed, 8 Jul 1998 22:18:08 +0000 (22:18 +0000)
committerdrepper <drepper>
Wed, 8 Jul 1998 22:18:08 +0000 (22:18 +0000)
scripts directory.  Pass move-if-change to awk.
(common-generated): Add $(version-maps) and sysd-versions.

Makerules

index 01be04b..230b800 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -279,13 +279,18 @@ endif
 # Generate version maps.
 ifeq ($(versioning),yes)
 -include $(common-objpfx)sysd-versions
-$(common-objpfx)sysd-versions: $(..)Versions.def $(..)versions.awk \
+$(addprefix $(common-objpfx),$(version-maps)): $(common-objpfx)sysd-versions
+generated += $(versin-maps)
+
+ifndef avoid-generated
+$(common-objpfx)sysd-versions: $(..)Versions.def $(..)scripts/versions.awk \
                               $(wildcard $(all-subdirs:%=$(..)%/Versions)) \
                               $(wildcard $(+sysdep_dirs:%=%/Versions))
        $(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
+              -v move_if_change='$(move-if-change)' \
               -f $(filter-out $<,$^) > $@T
        mv -f $@T $@
-$(all-version-maps): $(common-objpfx)sysd-versions
+endif
 endif
 
 ifndef compile-command.S