help-make
[Top][All Lists]
Advanced

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

Re: Multiple targets with one command


From: Noel Yap
Subject: Re: Multiple targets with one command
Date: Thu, 20 Nov 2003 12:12:16 -0500

I'm not sure if the following will suit your needs.

Whenever I've had to deal with something like this (eg swig), I do something 
like:

file1: source.dtx source.ins

file2 file3: file1

HTH,
Noel

Martin Schröder wrote:
> 
> Hi,
> I am generating source files from TeX documentation by using
> docstrip. This generates n files in one step. The obvious rule
> 
> file1 file2 file3 : source.dtx source.ins
>         latex source.ins
> 
> will execute the command once for each file -- while every
> executing of the command generates all files.
> 
> Patterns are not really a solution as the names of the source
> files don't depend on the target names; i.e. there would normally
> be no % on the right side of the rule. Older versions of gnu make
> (which I have to cope with) don't like this. :-{
> 
> Is there any technique to handle this with rules and not loose
> the listing of every file as a target?
> 
> Thanks in advance
>         Martin
> --
>                Martin Schröder, address@hidden
>      ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany
>           Voice +49 421 20419-44 / Fax +49 421 20419-10
>                     http://www.artcom-gmbh.de
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make

-- 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.




reply via email to

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