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