automake
[Top][All Lists]
Advanced

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

Path variables and path substitution


From: John Ling
Subject: Path variables and path substitution
Date: Wed, 05 May 2004 15:38:58 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3

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







reply via email to

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