summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/support/latex-make/latex-make.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-09 22:09:20 +0000
committerKarl Berry <karl@freefriends.org>2017-01-09 22:09:20 +0000
commit3477c053a2032d429fe995f9a66b3e801dcd3812 (patch)
tree9c95652f4aa0a56325101f6d5fdd855ce1a7b4fa /Master/texmf-dist/source/support/latex-make/latex-make.dtx
parent26195deb05135a4a0a01b5afdb302db2ead80657 (diff)
latex-make (9jan17)
git-svn-id: svn://tug.org/texlive/trunk@42914 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/support/latex-make/latex-make.dtx')
-rw-r--r--Master/texmf-dist/source/support/latex-make/latex-make.dtx38
1 files changed, 34 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/support/latex-make/latex-make.dtx b/Master/texmf-dist/source/support/latex-make/latex-make.dtx
index 522c89f7ccf..3b07ae5c60c 100644
--- a/Master/texmf-dist/source/support/latex-make/latex-make.dtx
+++ b/Master/texmf-dist/source/support/latex-make/latex-make.dtx
@@ -2,7 +2,7 @@
%
%<*dtx>
\ProvidesFile{latex-make.dtx}
-[2016/02/09 v2.2.2 Makefile for LaTeX]
+[2017/01/08 v2.2.3 Makefile for LaTeX]
%</dtx>
% \fi
% \iffalse
@@ -101,12 +101,16 @@
% documents with the help of a Makefile. Dependencies are
% automatically tracked with the help of the |texdepends.sty| package.
% \end{abstract}
-% \CheckSum{323}
+% \CheckSum{332}
%
% \changes{v2.0.0}{2006/03/09}{First autocommented version}
% \changes{v2.1.0}{2008/01/28}{That's the question}
% \changes{v2.1.1}{2009/11/08}{Improve error message}
% \changes{v2.1.2}{2012/03/17}{Switch from perl to python}
+% \changes{v2.2.0}{2016/02/08}{Support to install LaTeX-Make locally}
+% \changes{v2.2.1}{2016/02/09}{Improve configure}
+% \changes{v2.2.2}{2016/02/09}{Fix bugs}
+% \changes{v2.2.3}{2017/01/08}{Add LuaLaTeX support}
%
% \makeatletter
% \def\SpecialOptionIndex#1{\@bsphack
@@ -289,6 +293,8 @@
% \hline
% PDF & & PDFLATEX & |.tex| $\Rightarrow$ |.pdf| \\
% \hline
+% LUALATEX & & LUALATEX & |.tex| $\Rightarrow$ |.pdf| \\
+% \hline
% DVIPDF & DVI & DVIPDFM & |.dvi| $\Rightarrow$ |.pdf| \\
% \hline
% \end{tabular}
@@ -422,6 +428,14 @@
% endef
% \end{source}
%
+% \paragraph{LuaLaTeX flavor}
+% \begin{source}[0.9\linewidth]
+% define lu-define-flavor-LUALATEX\\
+% \hspace*{2ex}\$\$(eval \$\$(call lu-create-flavor,LUALATEX,tex,LUALATEX,.pdf,pdf,\textbackslash\\
+% \hspace*{4ex}.pdftex\_t .\$\$(\_LU\_PDFTEX\_EXT)))\\
+% endef
+% \end{source}
+%
% \paragraph{PS flavor}
% \begin{source}[0.9\linewidth]
% define lu-define-flavor-PS\\
@@ -741,6 +755,7 @@ export LU_UTILS
ifdef VERB
MAK_VERB := $(VERB)
else
+#MAK_VERB := debug
#MAK_VERB := verbose
#MAK_VERB := normal
MAK_VERB := quiet
@@ -749,6 +764,14 @@ endif
#---------------------------------------------------------------------
# MAK_VERB -> verbosity
+ifeq ($(MAK_VERB),debug)
+COMMON_PREFIX = echo " ======> building " $@ "<======" ; \
+ printf "%s $(@F) due to:$(foreach file,$?,\n * $(file))\n" $1; set -x;
+#
+COMMON_HIDE := set -x;
+COMMON_CLEAN := set -x;
+SHOW_LATEX:=true
+else
ifeq ($(MAK_VERB),verbose)
COMMON_PREFIX = echo " ======> building " $@ "<======" ; \
printf "%s $(@F) due to:$(foreach file,$?,\n * $(file))\n" $1;
@@ -777,6 +800,7 @@ SHOW_LATEX:=
endif
endif
endif
+endif
#---------------------------------------------------------------------
# Old LaTeX have limitations
@@ -1084,6 +1108,7 @@ endef
# Globals variables
$(eval $(call lu-setvar-global,LATEX,latex))
$(eval $(call lu-setvar-global,PDFLATEX,pdflatex))
+$(eval $(call lu-setvar-global,LUALATEX,lualatex))
$(eval $(call lu-setvar-global,DVIPS,dvips))
$(eval $(call lu-setvar-global,DVIPDFM,dvipdfm))
$(eval $(call lu-setvar-global,BIBTEX,bibtex))
@@ -1188,6 +1213,11 @@ define lu-define-flavor-PDF #
.pdftex_t .$$(_LU_PDFTEX_EXT)))
endef
+define lu-define-flavor-LUALATEX #
+ $$(eval $$(call lu-create-flavor,LUALATEX,tex,LUALATEX,.pdf,pdf,\
+ .pdftex_t .$$(_LU_PDFTEX_EXT)))
+endef
+
define lu-define-flavor-PS #
$$(eval $$(call lu-create-flavor,PS,dvi,DVIPS,.ps,ps,DVI))
endef
@@ -1238,7 +1268,7 @@ define _lu-do-latex # 1:master 2:flavor 3:source.tex 4:ext(.dvi/.pdf)
if [ ! -f "$(1)$(4).mk" ]; then \
NO_TEXDEPENDS_FILE=1 ;\
fi ;\
- sed -e 's,\\openout[0-9]* = `\(.*\)'"'.,TD_$(1)$(4)_OUTPUTS += \1,p;d" \
+ sed -e 's,\\openout[0-9]* = \([^`].*\),TD_$(1)$(4)_OUTPUTS += \1,p;s,\\openout[0-9]* = `\(.*\)'"'.,TD_$(1)$(4)_OUTPUTS += \1,p;d" \
"$(1).log" >> "$(1)$(4).mk" ;\
if [ -f "$(1)$(4)_FAILED" ]; then \
echo "*************************************" ;\
@@ -1348,7 +1378,7 @@ define lu-master-texflavor-rules # MASTER FLAVOR ext(.dvi/.pdf)
$$(warning *********************************) \
$$(warning *********************************) \
$$(warning Stopping generation of $$@) \
- $$(warning I got max recursion level $$(LU_$(1)_$(2)_MAX_REC)) \
+ $$(warning I got max recursion level $$(call lu-getvalue,MAX_REC,$(1),$(2))) \
$$(warning Set LU_$(1)_$(2)_MAX_REC, LU_MAX_REC_$(1) or LU_MAX_REC if you need it) \
$$(warning *********************************) \
$$(warning *********************************) \