diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-12 00:22:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-12 00:22:00 +0000 |
commit | 79b831d073a4fddcf93031c6196fbfdf3c75aa93 (patch) | |
tree | d60c087654067e6c1025493fefcb6912a212f44d /Master/texmf-dist/doc/support/latex-make/LaTeX.mk | |
parent | 7ab668d0d6f118c6df6f2d588c196ab4ef83e189 (diff) |
latex-make (11feb16)
git-svn-id: svn://tug.org/texlive/trunk@39678 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/latex-make/LaTeX.mk')
-rw-r--r-- | Master/texmf-dist/doc/support/latex-make/LaTeX.mk | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/support/latex-make/LaTeX.mk b/Master/texmf-dist/doc/support/latex-make/LaTeX.mk index eb11e60e83d..243c06ad6db 100644 --- a/Master/texmf-dist/doc/support/latex-make/LaTeX.mk +++ b/Master/texmf-dist/doc/support/latex-make/LaTeX.mk @@ -37,14 +37,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!!! ;) @@ -522,9 +520,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 ; \ "$$@" ; \ }; \ @@ -919,3 +917,41 @@ endif %.bbl: %.aux $(COMMON_PREFIX)$(call lu-call-prog,BIBTEX) $* + +_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 + |