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 # vim:ft=make
-include config.mk -include config.mk
.PHONY: all clean .PHONY: all clean dist-clean
### Variables ### Variables
MAIN_SRC ?= main.tex MAIN_SRC ?= main.tex
TEXENGINE ?= pdflatex TEXENGINE ?= latexmk --pdf
### Targets
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC)) MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC))
### Targets
all: $(MAIN_TARGET) all: $(MAIN_TARGET)
dist: all clean
$(MAIN_TARGET): $(MAIN_SRC) $(MAIN_TARGET): $(MAIN_SRC)
$(TEXENGINE) $^ $(TEXENGINE) $^
$(TEXENGINE) $^
dist-clean: clean
@rm -vf *.pdf *.eps *.dvi *.ps
clean: clean:
@rm -f *.dat *.log *.out *.aux *.dvi *.ps *.nav *.snm *.toc *.vrb *~ @rm -vf *.dat *.log *.out *.aux *.nav *.snm *.toc *.vrb *~ *.fls *.fdb_latexmk
@rm -f *.pdf *.eps

View file

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