help-make
[Top][All Lists]
Advanced

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

executing make in a different directory from a Makefile


From: Ravi Parimi
Subject: executing make in a different directory from a Makefile
Date: Mon, 1 Aug 2005 10:29:55 -0700

I have a directory structure like this:

/opt/src/main/ ------> build/
                     ------> tests/
There is one makefile each in the build/ and tests/ directories. I am
trying to invoke the
make in build/ from the makefile in tests/ by adding a new target in
tests/Makefile:

main:
          cd ../build;make PRODUCT=server OBJDIR=obj host

The problem with the above is that none of the variables in
build/Makefile are getting set when this command is executed. Is there
a way to fix this problem?

Many thanks!




reply via email to

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