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.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make