diff --git a/Makefile b/Makefile index be1b453978eab10f7b9061770f6daf69ba512250..654311613e04e19d0fde780644d53b015df4b844 100644 --- a/Makefile +++ b/Makefile @@ -21,9 +21,13 @@ HTMLOPTIONS += --mathjax=MathJax.js MD=$(wildcard *.md) HTML=$(MD:%.md=%.html) PDF=$(MD:%.md=%.pdf) +TEX=$(MD:%.md=%.tex) -all: $(HTML) $(PDF) +all: $(HTML) $(TEX) $(PDF) + +%.tex: %.md Makefile + pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $< %.pdf: %.md Makefile pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $< @@ -35,6 +39,10 @@ deploy: all mkdir -p mti cp cours.html mti/index.html cp cours.pdf mti/cours.pdf + mkdir -p mti/tpIntegrales + make -C tpIntegrales + cp tpIntegrales/*.pdf mti/tpIntegrales/ + cp tpIntegrales/*.html mti/tpIntegrales/ clean: rm -rf *.html *.pdf