X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=make-config.sh;h=b5c425f67024847e921df204415eccfd55da8540;hb=6d9e2243954872457115bbb9ac1ecb1d161acced;hp=00da0efc9952a49d2592699d2051116aa614b773;hpb=32d3b398d33736e61b51a14afca8c14decec4437;p=sbcl.git diff --git a/make-config.sh b/make-config.sh index 00da0ef..b5c425f 100644 --- a/make-config.sh +++ b/make-config.sh @@ -293,7 +293,16 @@ esac link_or_copy() { if [ "$sbcl_os" = "win32" ] ; then - cp -r "$1" "$2" + # Use preprocessor or makefile includes instead of copying if + # possible, to avoid unexpected use of the original, unchanged + # files when re-running only make-target-1 during development. + if echo "$1" | egrep '[.][ch]$'; then + echo "#include \"$1\"" >"$2" + elif echo "$1" | egrep '^Config[.]'; then + echo "include $1" >"$2" + else + cp -r "$1" "$2" + fi else ln -s "$1" "$2" fi