This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Path variables and path substitution
- From: John Ling <jling at bioinformatics dot ubc dot ca>
- To: automake at gnu dot org
- Date: Wed, 05 May 2004 15:38:58 -0700
- Subject: Path variables and path substitution
Hello, I have some very long paths defined in my Makefile.am and I would
like to clean things up by substituting them with a variable. For
example, if I have:
mylib_a_SOURCES = dir1/dir2/dir3/dir4/app.cpp
I want to define a variable, in Makefile.am, like so,
MYDIR = dir1/dir2/dir3/dir4
then I can change the SOURCES definition to be
mylib_a_SOURCES = $(MYDIR)/app.cpp
However, when I try this, everytime I run configure for some reason I
get dependency errors saying it can't find the app.Po file in the .dep/
directory. In addition, it creates a subdirectory that is literally
called '$(MYDIR)' which is not what I intend to happen.
How do I do this path variable substitution?
Thanks,
John