This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with VPATH


Hi,

I have hard times with using the make ditscheck. My test apps needs some
config files. If I run

$ make check

everything goes ok. But if I try 

$ make distcheck

some of the tests can't be run because they can't find the correct path
to those config files. What is the right way to handle such files ?

Till now I have try this:

In the Makefile.am I have this:

INCLUDES = -I$(top_srcdir)/include $(VDK_CFLAGS) -DVPATH='"$(VPATH)"'

But the problem is that VPATH is empty, if I run the "make check", and
of the form /dir1/dir2/.../dirN, if I run "make distcheck". For this
reason, it is hard for me to create the path to the config files. It
would have been very easy if "dirN" would have been followed by a "/",
but it isn't.

What is the right way to get the path to your config files so they work
in all the cases ?

(The config file is of the form Example.cfg and it is located in the
directory src, toghther with test's source.) 

TIA,

Ionutz
-- 
Mental backup in progress - Do Not Disturb!
--
http://borco-ei.eng.hokudai.ac.jp/~borco/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]