help-make
[Top][All Lists]
Advanced

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

Re: Delegate Variable to sub-target


From: Greg Chicares
Subject: Re: Delegate Variable to sub-target
Date: Mon, 30 May 2011 15:50:16 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 2011-05-30 13:08Z, Anja Schaefer wrote:
> 
> Thank you. I now use functions to encapsulate 1-line-commands such as:
> 
> # Functions
> pdflatex = pdflatex ${1}
> bibtex = bibtex ${1}.bib
> 
> Chapter1:
> $(call pdflatex,Chapter1)
> $(call bibtex,Chapter1)
> $(call pdflatex,Chapter1)
> $(call pdflatex,Chapter1)
> 
> Chapter2:
> $(call pdflatex,Chapter2)
> $(call bibtex,Chapter2)
> $(call pdflatex,Chapter2)
> $(call pdflatex,Chapter2)
> ...
> 
> Is it possible to simplify this even more?

AllChapters: Chapter1 Chapter2

Chapter%:
        pdflatex $*
        bibtex $*.bib



reply via email to

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