diff --git a/config.sh b/config.sh
index a6963622d4b41d6e25bb4fe230c2513849c077d3..55bc9a2ab6b15f91c655a4ab033fcbd6107b83fe 100644
--- a/config.sh
+++ b/config.sh
@@ -144,11 +144,11 @@ CFLAGS+=-DLIBDIR='"\$(LIBDIR)"'
all: ${all}
EOF
-
- for target in $all
+
+ for target in $(printf '%s\n' $all | tr '.' '_')
do
- ${target//./_} >>"$outdir"/config.mk
- done
+ $target
+ done >>"$outdir"/config.mk
echo done
touch $outdir/cppcache