Ishan <[EMAIL PROTECTED]> wrote in news:d95b229b-1265-4688-8e0e-
[EMAIL PROTECTED]:

> Hi,
> 
> I have two simple projects in the directory structure given below.
> 
> +-home/
>  |
>   +-parent/
>  | |
>  | +-comp01/
>  | | |
>  | | +-Test01.h
>  | | |
>  | | +-Test01.cpp
>  | | |
>  | | +-main.cpp
>  | | |
>  | | +-Makefile
>  |
>   +-child/
>     |
>     +-comp01/
>       |
>       +-Makefile
> 
> 
> 'child' project needs to build itself using the source from the
> 'parent' project. This is the Makefile of the 'child' project.
> 
> 
> CC = g++
> 
> vpath %.cpp .:../../parent/comp01
> 

That is not the syntax for vpath. Look in the make manual. A very good 
source is http://make.paulandlesley.org/

For awhile that site was off line, but it looks like it is healthy 
again.

Reply via email to