diff options
author | Karl Berry <karl@freefriends.org> | 2012-03-30 23:23:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-03-30 23:23:02 +0000 |
commit | 849996eca72af498b48b10fbea7f14c4b9d21b8f (patch) | |
tree | 2d40d42dfc9fc0b0622212cc220868f98345305f /Master/texmf-dist/source/latex/stex/make/Makefile.latex.in | |
parent | d82e1c23973fd0271f93686f487bd1cee8dcd947 (diff) |
restore stex (ca. 28jan12)
git-svn-id: svn://tug.org/texlive/trunk@25792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/make/Makefile.latex.in')
-rw-r--r-- | Master/texmf-dist/source/latex/stex/make/Makefile.latex.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/stex/make/Makefile.latex.in b/Master/texmf-dist/source/latex/stex/make/Makefile.latex.in new file mode 100644 index 00000000000..65bf6227b87 --- /dev/null +++ b/Master/texmf-dist/source/latex/stex/make/Makefile.latex.in @@ -0,0 +1,31 @@ +pdf: sms $(TARGET.pdf) +mpdf: sms $(MODS.pdf) +# LaTeX build rules: +# +# use non-interactive PDFLATEX (see above) +# +# _always_ delete pdf on error (otherwise, we end up with a corrupt +# pdf file and make saying "nothing to do" on the next run ) +# +# make will delete temporary files (toc,sms,aux) afterwards +# (FIXME: why? should this be disabled or kept like that?) +# +# make pdf depend on its own .toc and .aux and global aux/sms files +$(TARGET.pdf): %.pdf: %.tex $(MODS) $(TARGET.parts) $(IMG) + $(PDFLATEX) $< || $(RM) $@ + @echo + @if (test -e $(patsubst %.tex, %.idx, $<));\ + then makeindex $(patsubst %.tex, %.idx, $<); fi + @echo + @if (grep "No file$(patsubst %.tex, %.bbl, $<)" $(patsubst %.tex, %.log, $<)> /dev/null);\ + then bibtex $(patsubst %.tex, %, $<); fi + @echo + $(PDFLATEX) $< || $(RM) $@ + @echo + @if (grep Rerun $(patsubst %.tex, %.log, $<) > /dev/null);\ + then $(PDFLATEX) $< || $(RM) $@; fi + @if (grep Rerun $(patsubst %.tex, %.log, $<) > /dev/null);\ + then $(PDFLATEX) $< || $(RM) $@; fi + +$(MODS.pdf): %.pdf: %.tex + $(PDFLATEX) -jobname=$(basename $<) "\nonstopmode\input{$(MODS.pre)}\begin{document}\input{$<}\end{document}" || $(RM) $@ |