This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
problem with VPATH
- To: "automake@gnu.org" <automake@gnu.org>
- Subject: problem with VPATH
- From: Ionutz Borcoman <borco@borco-ei.eng.hokudai.ac.jp>
- Date: Fri, 21 May 1999 09:26:47 +0900
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/