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]
Other format: [Raw text]

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






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