latexandmore/MatheC1/Makefile

23 lines
362 B
Makefile
Raw Normal View History

2017-03-29 13:49:35 +02:00
PDF = document
2017-10-05 14:04:25 +02:00
all: $(PDF)
2017-03-29 13:49:35 +02:00
2017-10-05 14:04:25 +02:00
continuous: $(PDF).continuous
2017-03-29 13:49:35 +02:00
%.continuous: %.pdf
latexmk -jobname=$(@:%.continuous=%) -pvc -pdf $(@:%.continuous=%).tex
$(PDF): $(PDF).pdf
%.pdf: %.tex
latexmk -jobname=$(@:%.pdf=%) -pdf $<
clean:
latexmk -c -f $(PDF).tex
2017-10-05 14:04:25 +02:00
distclean:
2017-03-29 13:49:35 +02:00
latexmk -C -f $(PDF).tex
2017-10-05 14:04:25 +02:00
rm -f $(PDF).pdf
2017-03-29 13:49:35 +02:00
.PHONY: all clean distclean $(PDF) continuous