From 2d78877b538674df275a723cf849dc7b48cb487f Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 31 Jan 2022 14:00:24 +0100 Subject: [PATCH] Extended Makefile --- .../2022-02-03_group_meeting/Makefile | 20 +++++++++---------- .../2022-02-03_group_meeting/config.mk | 1 - 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/presentations/2022-02-03_group_meeting/Makefile b/presentations/2022-02-03_group_meeting/Makefile index 2a1985e..5a74ede 100644 --- a/presentations/2022-02-03_group_meeting/Makefile +++ b/presentations/2022-02-03_group_meeting/Makefile @@ -1,24 +1,24 @@ # vim:ft=make -include config.mk -.PHONY: all clean - +.PHONY: all clean dist-clean ### Variables - MAIN_SRC ?= main.tex -TEXENGINE ?= pdflatex +TEXENGINE ?= latexmk --pdf + +MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC)) ### Targets - -MAIN_TARGET=$(patsubst %.tex,%.pdf,$(MAIN_SRC)) - all: $(MAIN_TARGET) +dist: all clean + $(MAIN_TARGET): $(MAIN_SRC) $(TEXENGINE) $^ - $(TEXENGINE) $^ + +dist-clean: clean + @rm -vf *.pdf *.eps *.dvi *.ps clean: - @rm -f *.dat *.log *.out *.aux *.dvi *.ps *.nav *.snm *.toc *.vrb *~ - @rm -f *.pdf *.eps + @rm -vf *.dat *.log *.out *.aux *.nav *.snm *.toc *.vrb *~ *.fls *.fdb_latexmk diff --git a/presentations/2022-02-03_group_meeting/config.mk b/presentations/2022-02-03_group_meeting/config.mk index cb810d7..13b1456 100644 --- a/presentations/2022-02-03_group_meeting/config.mk +++ b/presentations/2022-02-03_group_meeting/config.mk @@ -1,2 +1 @@ MAIN_SRC=2022-02-03_group_meeting.tex -TEXENGINE=pdflatex