2000-03-19 Roland McGrath <roland@baalperazim.frob.com>
authorroland <roland>
Sun, 19 Mar 2000 21:46:35 +0000 (21:46 +0000)
committerroland <roland>
Sun, 19 Mar 2000 21:46:35 +0000 (21:46 +0000)
* Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
for $(map-firstversions), which better handles it being empty.

Makerules

index fefbea0..202c922 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -294,9 +294,7 @@ $(common-objpfx)Versions.all: $(..)scripts/firstversions.awk \
                              $(..)Versions.def \
                              $(wildcard $(add-ons:%=$(..)%/Versions.def)) \
                              $(common-objpfx)soversions.mk
-       { for map in $(map-firstversions); do \
-           echo $$map; \
-         done | sed 's/:/ : /'; \
+       { $(foreach map,$(map-firstversions),echo '$(subst :, : ,$(map))';) \
          cat $(filter-out $< $(common-objpfx)soversions.mk,$^); \
        } | LC_ALL=C $(AWK) -f $< > $@T
        mv -f $@T $@