mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-12-23 05:23:34 +01:00
24 lines
413 B
Makefile
24 lines
413 B
Makefile
# vim:ft=make
|
|
-include config.mk
|
|
|
|
.PHONY: all clean dist-clean
|
|
|
|
### Variables
|
|
MAIN_SRC ?= main.tex
|
|
TEXENGINE ?= latexmk --pdf
|
|
|
|
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC))
|
|
|
|
### Targets
|
|
all: $(MAIN_TARGET)
|
|
|
|
dist: all clean
|
|
|
|
$(MAIN_TARGET): $(MAIN_SRC)
|
|
$(TEXENGINE) $^
|
|
|
|
dist-clean: clean
|
|
@rm -vf *.pdf *.eps *.dvi *.ps
|
|
|
|
clean:
|
|
@rm -vf *.dat *.log *.out *.aux *.nav *.snm *.toc *.vrb *~ *.fls *.fdb_latexmk
|