Let's assume this project hierarchy:
root |-src | |-proj1 | |-proj2 | | |-src | | | |-nested |-build
Using GNU autotools and relying on recursive make, configuring and making the project hierarchy in the build
directory is no problem with:
root$ cd src && autoreconf -i && cd ../build && ../src/configure --options && make
Now, since this creates a mirror of the src
hierarchy in build
, I'd like to have a symlink to the corresponding src
subdir in every single subdir of build
, like this:
root |-src | |-proj1 | |-proj2 | | |-src | | | |-nested |-build | |-proj1 | | |-_src -> root/src/proj1 | |-proj2 | | |-_src -> root/src/proj2 | | |-src | | | |-_src -> root/src/proj2/src | | | |-nested | | | | |-_src -> root/src/proj2/src/nested
Is there a way to achieve that?