I now need to make a makefile that does an install for my own software.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85150\"][{POST_SNAPBACK}][/a][/div]
Hi Scott
If you can explain a few things I am sure I can help.
First what are you building your application on - linux workstation with g++ ? Are you using an IDE or generating makefile off the commandline with tmake or what
Second, what device and OS is it going to run on? IE is it a Zaurus with pdaXrom or a linux workstation?
The answer to the second question is still unclear and upon that depends the answer to your query.
Distributions don't normally give the user carte blanche to install wherever they like, without also passing the responsibility to create symlinks etc so the files can be found.
The user can already pass --prefix and --eprefix to configure to change the install path if you have that type of distribution.
Your other options include;
setting environment variables with the relevant paths,
install writing the relevant paths to your apps config file
or just something like your app looking for the files where you would install by default and if not there displaying a getOpenFileName dialog for the user to specify where they are and saving in config file thereafter.
regards
Melee