[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Baked-in paths

From: Reuben Thomas
Subject: Re: Baked-in paths
Date: Sun, 14 Mar 2010 22:42:00 +0000

On 14 March 2010 22:39, Martin Kalbfuß <address@hidden> wrote:
> Am Sonntag, den 14.03.2010, 22:29 +0000 schrieb Reuben Thomas:
>> 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?
> set the install prefix to a sub directory of your build directory, This
> way you can test your application, using the datadir path, without
> installing it into the system.

So, are you saying that I cannot test the application without running
"make install"? I would prefer to be able to run "make check" in the
build directory; if I cannot, then "make distcheck" will not work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]