summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-04-08 21:33:08 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-04-08 21:33:08 -0400
commit222d67cf3d017b3eec2f857cee43f609ff5d1548 (patch)
tree047189ee168f8e9806e52ea1823d4bb926c0148a
parent782d4a258c4960a5a82c6c5d981f42dcf96af1b8 (diff)
downloadmakefile_templates-222d67cf3d017b3eec2f857cee43f609ff5d1548.tar.gz
makefile_templates-222d67cf3d017b3eec2f857cee43f609ff5d1548.zip
tex can select between rubber and pdflatex
-rw-r--r--tex.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/tex.mk b/tex.mk
index f130ee9..d0254bf 100644
--- a/tex.mk
+++ b/tex.mk
@@ -14,7 +14,14 @@ pdf_tex: $(pdf_from_independent_tex)
# rubber does not deal with nicely with subfiles
# thus force switch below
$(pdf_from_independent_tex): %.pdf : %.tex $(tex_fig_files) $(tex_includes)
+ifndef USE_PDF_LATEX
rubber -f -d $<
+else
+ pdflatex $<
+ bibtex $(<:%.tex=%)
+ pdflatex $<
+ pdflatex $<
+endif
dest_dir_tex:
$(INSTALL) -d -m 0755 $(dest_dir)