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: Anja Schaefer
Subject: RE: Delegate Variable to sub-target
Date: Mon, 30 May 2011 06:08:19 -0700 (PDT)

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? I'm wondering how to use
sub-routines with more than one line in make. Is this possible?



Warlich, Christof wrote:
> 
> Sort-of, you may want to look at
> http://www.gnu.org/software/make/manual/make.html#Call-Function
> 

-- 
View this message in context: 
http://old.nabble.com/Delegate-Variable-to-sub-target-tp31689693p31733207.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.




reply via email to

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