Skip to content
Snippets Groups Projects
Commit ababf9a6 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added deploy to makefile

parent d6b21693
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment