Unified · Split
| @@ -35,8 +35,8 @@ Documentation: · 34 unmodified lines | ||
| 35 | 35 | make test |
| 36 | 36 | make install |
| 37 | 37 | |
| 38 | −Alternatively, VPATH builds are supported: you may use different | |
| 39 | −directories to old build objects, kept separate from your source tree: | |
| 38 | +Alternatively, out-of-tree builds are supported: you may use different | |
| 39 | +directories to hold build objects, kept separate from your source tree: | |
| 40 | 40 | |
| 41 | 41 | mkdir _build |
| 42 | 42 | cd _build |
| @@ -502,9 +502,14 @@ if test "$source_path_used" = "yes" ; then · 501 unmodified lines | ||
| 502 | 502 | for f in $FILES ; do |
| 503 | 503 | dir=`fn_dirname "$f"` |
| 504 | 504 | test -d "$dir" || mkdir -p "$dir" |
| 505 | − back=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'` | |
| 506 | − back=$back$f | |
| 507 | − ln -sf $back $f | |
| 505 | + # Build a symlink $f that points to $dest, its $source_path | |
| 506 | + # counterpart. | |
| 507 | + case $source_path in | |
| 508 | + /*) dest=$source_path/$f;; | |
| 509 | + *) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'` | |
| 510 | + dest=$dest$f;; | |
| 511 | + esac | |
| 512 | + ln -sf $dest $f | |
| 508 | 513 | done |
| 509 | 514 | fi |
| 510 | 515 | cat >>config.mak <<EOF |