Closed MarioBlunk closed 5 years ago
Yes, this is doable:
for Exec_Dir use External ("HOME") & "/bin";
Hello,
Here is more information that could help: hand-written project files are generally used just for the build step of your software. It’s generally a better practice to keep output directories local to your project. For instance, it allows one to work on the same project simultaneously from different directories.
For the installation step, you can use GPRinstall. With your project file above, that would give:
$ gprbuild -Ptagged_types_3
$ gprinstall -Ptagged_types_3 --prefix=$HOME
See the corresponding documentation for more details.
Is there a way to tell gprbuild to use the environment variable $HOME in the exec_dir ? I want the binary to be written to $HOME/bin for example. This would make the install process a lot more flexible. See the example below. Thanks !