help-gnu-utils
[Top][All Lists]
Advanced

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

Re: VPATH question


From: Steve Calfee
Subject: Re: VPATH question
Date: Sun, 06 Jan 2008 02:34:18 +0000
User-agent: Xnews/5.04.25

Ishan <ishan.desilva@gmail.com> wrote in news:d95b229b-1265-4688-8e0e-
779072ad7b99@s12g2000prg.googlegroups.com:

> 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

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