question regarding including the DESTDIR variable as a part of the application's source code

Ivica Bukvic ico at fuse.net
Mon Dec 22 01:33:31 GMT 2003


Hi all,

I have a peculiar problem. I have designed an app using kdevelop 2.x
that uses a hard-coded path to some of its data files (i.e. images).
Now, I have users who have expressed interest in being able to alter
that path, which certainly is possible if I alter their path in the
makefile.in file to reflect the prefix of $(DESTDIR). However, with this
change, the compiled app will not be able to find the data files as it
will be looking for them elsewhere.

So my question is what is the best way to have the app aware of the
install path change, so that it is always able to locate the data files.
In other words, is it somehow possible to make the source code aware of
the DESTDIR variable, so that when the app as a stand-alone binary is
always aware of the path specified at the compile-time?

I would greatly appreciate your assistance in this matter!

Ivica Ico Bukvic, composer & multimedia sculptor
http://meowing.ccm.uc.edu/~ico



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list