Extended Makefile

This commit is contained in:
Eric Teunis de Boone 2022-01-31 14:00:24 +01:00
parent 9b42271b2f
commit 2d78877b53
2 changed files with 10 additions and 11 deletions

View file

@ -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

View file

@ -1,2 +1 @@
MAIN_SRC=2022-02-03_group_meeting.tex
TEXENGINE=pdflatex