[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH usage
From: |
Paul D. Smith |
Subject: |
Re: VPATH usage |
Date: |
14 Feb 2001 17:26:48 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
%% address@hidden writes:
s> Here is a sample makefile that uses the VPATH variable to generate
s> dependencies. It does not generate the right dependencies i.e. the VPATH
s> does not work properly:
s> CFLAGS = -g -I. -I$(RELEASE)/source
s> RELEASE = C:/temp
s> VPATH = $(filter-out -I.,$(filter -I%,$(CFLAGS)))
s> If I do not use $(RELEASE) in the CFLAGS then VPATH works fine. But it does
s> not work with the $(RELEASE) in there.
s> What am I missing here ?
See the docs. VPATH treats ":" as a path separator, normally.
There is some info in the README.W32 file about this. You didn't give
any information about what OS you're running on (although we can infer
either DOS or Windows), and it's not clear how you've compiled your
version of GNU make, nor which version you're using, etc.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist