2022-01-31 12:18:14 +01:00
|
|
|
# vim:ft=make
|
|
|
|
-include config.mk
|
|
|
|
|
2022-01-31 14:00:24 +01:00
|
|
|
.PHONY: all clean dist-clean
|
2022-01-31 12:18:14 +01:00
|
|
|
|
|
|
|
### Variables
|
|
|
|
MAIN_SRC ?= main.tex
|
2022-01-31 14:00:24 +01:00
|
|
|
TEXENGINE ?= latexmk --pdf
|
2022-01-31 12:18:14 +01:00
|
|
|
|
2022-01-31 14:00:24 +01:00
|
|
|
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC))
|
2022-01-31 12:18:14 +01:00
|
|
|
|
2022-01-31 14:00:24 +01:00
|
|
|
### Targets
|
2022-01-31 12:18:14 +01:00
|
|
|
all: $(MAIN_TARGET)
|
|
|
|
|
2022-01-31 14:00:24 +01:00
|
|
|
dist: all clean
|
|
|
|
|
2022-01-31 12:18:14 +01:00
|
|
|
$(MAIN_TARGET): $(MAIN_SRC)
|
|
|
|
$(TEXENGINE) $^
|
2022-01-31 14:00:24 +01:00
|
|
|
|
|
|
|
dist-clean: clean
|
|
|
|
@rm -vf *.pdf *.eps *.dvi *.ps
|
2022-01-31 12:18:14 +01:00
|
|
|
|
|
|
|
clean:
|
2022-02-02 13:41:11 +01:00
|
|
|
@rm -vf *.dat *.log *.out *.aux *.nav *.snm *.toc *.vrb *~ *.fls *.fdb_latexmk *-blx.bib *.bbl *.blg *.run.xml
|