From 6c3d6926fa134e7ab4b80242afd0ceb846ffce19 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 5 Nov 2021 18:20:13 +0100 Subject: intelligent quiet pdflatex mode + some fixes & notes --- pdf/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pdf/Makefile') 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 -- cgit v1.2.3