I imagine this question has been asked before, but searching the
archives, the net and the manual didn't help me with the following:

I have a C program which loads some scripts at runtime. These are
stored in datadir (e.g. /usr/local/share/prog). But I also want to be
able to run the program from its build directory.

At the moment I bake in the relevant path; I imagine that for "make
install" I have to rebuild the binary, baking in the installation
path, having baked the build directory path in a normal "make".

Is there a recommended way to deal with this situation?

-- 
http://rrt.sc3d.org


Reply via email to