summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/support/latex-make/latex-make.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-12 00:22:00 +0000
committerKarl Berry <karl@freefriends.org>2016-02-12 00:22:00 +0000
commit79b831d073a4fddcf93031c6196fbfdf3c75aa93 (patch)
treed60c087654067e6c1025493fefcb6912a212f44d /Master/texmf-dist/source/support/latex-make/latex-make.dtx
parent7ab668d0d6f118c6df6f2d588c196ab4ef83e189 (diff)
latex-make (11feb16)
git-svn-id: svn://tug.org/texlive/trunk@39678 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.dtx77
1 files changed, 60 insertions, 17 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 24e32d0dd62..522c89f7ccf 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}
-[2012/03/17 v2.1.2 Makefile for LaTeX]
+[2016/02/09 v2.2.2 Makefile for LaTeX]
%</dtx>
% \fi
% \iffalse
@@ -101,7 +101,7 @@
% documents with the help of a Makefile. Dependencies are
% automatically tracked with the help of the |texdepends.sty| package.
% \end{abstract}
-% \CheckSum{313}
+% \CheckSum{323}
%
% \changes{v2.0.0}{2006/03/09}{First autocommented version}
% \changes{v2.1.0}{2008/01/28}{That's the question}
@@ -211,7 +211,22 @@
% you change |\include{first}| into |\include{second}|), you may have
% to type |make distclean| before being able to recompile your
% document. Else, |make| can fail, trying to build or found the old
-% |first.tex| file.
+% |first.tex| file.
+% \paragraph{Shared work}
+% If you work with other people that do not have installed (and do not
+% want to install) \LaTeX-Make, you can use the
+% |LaTeX-Make-local-install| target in |LaTeX.mk| to install required
+% files locally in the current directory. You can them commit these
+% files into your control version system so all co-authors will be
+% able to use \LaTeX-Make without installing it.
+% However, note that:
+% \begin{itemize}
+% \item you wont beneficit of an update of \LaTeX-Make in your system
+% (you will continue to use the locally installed files)
+% \item there is no support for upgrading locally installed files (but
+% reexecuting the installation should do a correct upgrade most of
+% the time)
+% \end{itemize}
% \subsection{Customization}
% Of course, lots of things can be customized. Here are the most
% useful ones. Look at the section \ref{sec:reference} for more detailed
@@ -711,14 +726,12 @@ endif
####[ Configuration ]################################################
-# For global site options
--include LaTeX.mk.conf
-
# list of messages categories to display
LU_SHOW ?= warning #info debug debug-vars
# Select GNU/BSD/MACOSX utils (cp, rm, mv, ...)
-LU_UTILS ?= GNU
+LU_UTILS ?= $(shell ( /bin/cp --heelp > /dev/null 2>&1 && echo GNU ) || echo BSD )
+export LU_UTILS
####[ End of configuration ]################################################
# Modifying the remaining of this document may endanger you life!!! ;)
@@ -1201,9 +1214,9 @@ $(eval $(call lu-addtovar-global,FLAVORS,PDF PS))
define _lu-do-latex # 1:master 2:flavor 3:source.tex 4:ext(.dvi/.pdf)
exec 3>&1; \
run() { \
- echo -n "Running:" 1>&3 ; \
+ printf "Running:" 1>&3 ; \
for arg; do \
- echo -n " '$$arg'" 1>&3 ; \
+ printf "%s" " '$$arg'" 1>&3 ; \
done ; echo 1>&3 ; \
"$$@" ; \
}; \
@@ -1621,16 +1634,46 @@ endif
%.bbl: %.aux
$(COMMON_PREFIX)$(call lu-call-prog,BIBTEX) $*
%MAKEFILE
+
+_LaTeX_Make_GROUPS=BIN TEX
+_LaTeX_Make_BIN = figdepth.py gensubfig.py svg2dev.py svgdepth.py latexfilter.py
+_LaTeX_Make_BINDIR=bin
+_LaTeX_Make_BINORIGDIR= /FIXME_TDS_ROOT/scripts/latex-make
+_LaTeX_Make_TEX = figlatex.sty pdfswitch.sty texdepends.sty texgraphicx.sty
+_LaTeX_Make_TEXDIR=.
+_LaTeX_Make_TEXORIGDIR= /FIXME_TDS_ROOT/tex/latex/latex-make
+
+.PHONY: LaTeX-Make-local-install LaTeX-Make-local-uninstall
+.PHONY: _LaTeX-Make-local-install-done
+_LaTeX-Make-local-install-done:
+
+LaTeX-Make-local-uninstall::
+ $(foreach g,$(_LaTeX_Make_GROUPS),\
+ $(foreach f,$(_LaTeX_Make_$(g)), \
+ $(LU_RM) $(_LaTeX_Make_$(g)DIR)/$f && \
+ ) (rmdir $(_LaTeX_Make_$(g)DIR) || true) && \
+ ) $(LU_RM) LaTeX.mk
+
+LaTeX-Make-local-install:: _LaTeX-Make-local-install-done
+ $(foreach g,$(_LaTeX_Make_GROUPS),\
+ mkdir -p $(_LaTeX_Make_$(g)DIR) && \
+ $(foreach f,$(_LaTeX_Make_$(g)), \
+ $(LU_CP) $(_LaTeX_Make_$(g)ORIGDIR)/$f $(_LaTeX_Make_$(g)DIR) && \
+ )) $(LU_CP) $(_LaTeX_Make_BINORIGDIR)/LaTeX.mk .
+ @echo >> LaTeX.mk
+ @echo "_LaTeX-Make-local-install-done:" >> LaTeX.mk
+ @echo " @echo " >> LaTeX.mk
+ @echo " @echo 'You must remove (at least) the locally installed LaTeX.mk file if you wish to'" >> LaTeX.mk
+ @echo " @echo 'restart the installation.'" >> LaTeX.mk
+ @echo " @echo 'You can try \"make LaTeX-Make-local-uninstall\"'" >> LaTeX.mk
+ @echo " @echo " >> LaTeX.mk
+ @echo " @exit 1" >> LaTeX.mk
+ @echo
+ @echo "=> All LaTeX-Make files are locally copied"
+ @echo
+
%</makefile>
% \end{macrocode}
-% \subsection{LaTeX.mk.conf}
-% \begin{macrocode}
-%<*makefile-config>
-# Choose between GNU/BSD utilities (cp, rm, ...)
-# LU_UTILS = GNU
-# LU_UTILS = BSD
-%</makefile-config>
-% \end{macrocode}
% \subsection{figdepth}
%
% \begin{macrocode}