summaryrefslogtreecommitdiff
path: root/tex.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tex.mk')
-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)