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

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

Re: Preprocessing files with make


From: Gisle Vanem
Subject: Re: Preprocessing files with make
Date: Thu, 19 Aug 2004 12:03:00 +0200

"Erik Cato" wrote:

> E.i what i want is this
> source/dir1/source.c -> preprocessed/source.d
> 
> The easy party is to construct a variable wich contain the source files
> and preprocessed files but i dont know how to use them.

Use the pattern matching rule (I think it's called). E.g.

VPATH = source/dir1 preprocessed

preprocessed/%.d: source/dir1/%.c
       $(pp_command) -o $@ $< 

--gv


reply via email to

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