help-make
[Top][All Lists]
Advanced

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

Re: using make for latex


From: Greg Chicares
Subject: Re: using make for latex
Date: Sat, 18 Sep 2010 15:18:20 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

On 2010-09-18 14:24Z, Paul Smith wrote:
> On Sat, 2010-09-18 at 14:17 +0000, Greg Chicares wrote:
>> %.dvi: TOOL := latex
>> %.pdf: TOOL := pdflatex
>> 
>> %.dvi %.pdf: %.tex
>>         @echo 'Sample command: $(TOOL) --input=$< --output=$@'
>>         # ...further commands here...
> 
> You need to write these rules separately

Thanks. I had tested it thus:

  $touch eraseme.tex
  $make eraseme.dvi
  Sample command: latex --input=eraseme.tex --output=eraseme.dvi
  $make eraseme.pdf
  Sample command: pdflatex --input=eraseme.tex --output=eraseme.pdf

So far so good, but:

  $make eraseme.dvi eraseme.pdf
  Sample command: latex --input=eraseme.tex --output=eraseme.dvi
  make: Nothing to be done for `eraseme.pdf'.

and the explanation is:

http://www.gnu.org/software/make/manual/html_node/Pattern-Intro.html#Pattern-Intro
| Pattern rules may have more than one target. Unlike normal
| rules, this does not act as many different rules with the
| same prerequisites and recipe.



reply via email to

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