mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-25 00:13:35 +01:00
Extended Makefile
This commit is contained in:
parent
9b42271b2f
commit
2d78877b53
2 changed files with 10 additions and 11 deletions
|
@ -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
|
||||||
|
|
||||||
|
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC))
|
||||||
|
|
||||||
### Targets
|
### Targets
|
||||||
|
|
||||||
MAIN_TARGET=$(patsubst %.tex,%.pdf,$(MAIN_SRC))
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
MAIN_SRC=2022-02-03_group_meeting.tex
|
MAIN_SRC=2022-02-03_group_meeting.tex
|
||||||
TEXENGINE=pdflatex
|
|
||||||
|
|
Loading…
Reference in a new issue