aboutsummaryrefslogtreecommitdiff
path: root/pdf/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-11-05 18:20:13 +0100
committern-peugnet <n.peugnet@free.fr>2021-11-05 18:20:13 +0100
commit6c3d6926fa134e7ab4b80242afd0ceb846ffce19 (patch)
tree9dcb76e6e0d5e7ce52d5e6e35c67c7e3ae59c8d6 /pdf/Makefile
parent1e426416161d6f1606dc97297fb070b596b403a7 (diff)
downloaddna-backup-6c3d6926fa134e7ab4b80242afd0ceb846ffce19.tar.gz
dna-backup-6c3d6926fa134e7ab4b80242afd0ceb846ffce19.zip
intelligent quiet pdflatex mode + some fixes & notes
Diffstat (limited to 'pdf/Makefile')
-rw-r--r--pdf/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/pdf/Makefile b/pdf/Makefile
index 1472f07..585b1b3 100644
--- a/pdf/Makefile
+++ b/pdf/Makefile
@@ -1,16 +1,15 @@
FILES = doc
PDF = $(FILES:%=%.pdf)
-# Debug flags
-ifndef DEBUG
-LATEXMK_FLAGS += -quiet
-endif
+export max_print_line = 100000
+PDFLATEX_FLAGS = -shell-escape -file-line-error -interaction=nonstopmode -halt-on-error
all pdf: $(PDF)
.SECONDEXPANSION:
%.pdf: %.tex $$(wildcard $$*.bib) assets/*.tex
- latexmk $(LATEXMK_FLAGS) -pdf -f $<
+ latexmk $(LATEXMK_FLAGS) $(PDFLATEX_FLAGS) -pdf -f $< \
+ | grep --color=always -o '.*:[0-9]*:.*\|warning.*' || true
mostlyclean:
latexmk $(LATEXMK_FLAGS) -c