History

configure: support absolete out-of-tree builds

Akim Demaille committed 13 years ago

Commit 017bbbf1 parent d7264e02 files · +10 −5Browse files

Unified · Split

2 files
  1. README +2 −2
  2. configure +8 −3
README+2−2
@@ -35,8 +35,8 @@ Documentation: · 34 unmodified lines
35 make test35 make test
36 make install36 make install
37 37
38Alternatively, VPATH builds are supported: you may use different38Alternatively, out-of-tree builds are supported: you may use different
39directories to old build objects, kept separate from your source tree:39directories to hold build objects, kept separate from your source tree:
40 40
41 mkdir _build41 mkdir _build
42 cd _build42 cd _build
configure+8−3
@@ -502,9 +502,14 @@ if test "$source_path_used" = "yes" ; then · 501 unmodified lines
502 for f in $FILES ; do502 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$f506 # counterpart.
507 ln -sf $back $f507 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 done513 done
509fi514fi
510cat >>config.mak <<EOF515cat >>config.mak <<EOF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t