Select Git revision
Forked from
orestis.malaspin / math_tech_info
96 commits behind the upstream repository.
-
orestis.malaspin authoredorestis.malaspin authored
Makefile 2.39 KiB
STYLES := css/tufte-css/tufte.css \
css/pandoc.css \
css/pandoc-solarized.css \
css/tufte-extra.css
OPTIONS = --toc
OPTIONS += --filter=pandoc-crossref
PDFOPTIONS = --highlight-style kate
PDFOPTIONS += --pdf-engine pdflatex
PDFOPTIONS += --number-sections
PDFOPTIONS += --template=./default.latex
HTMLOPTIONS += -t html5
HTMLOPTIONS += -c css/tufte-css/tufte.css
HTMLOPTIONS += --self-contained
HTMLOPTIONS += --mathjax=MathJax.js
all: cours.pdf cours.html
# %.tex: %.md
# pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $<
cours.pdf: 00_macros.md 01_rappel.md 02_optimisation.md 03_integrales.md 04_edo.md 05_fourier.md 06_probas_stats.md 07_remerciements.md 08_notes.md
pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^ --metadata-file metadata.yaml
cours.html: 00_macros.md 01_rappel.md 02_optimisation.md 03_integrales.md 04_edo.md 05_fourier.md 06_probas_stats.md 07_remerciements.md 08_notes.md
pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $^ --metadata-file metadata.yaml
hakyll_gen: rappel.markdown optimisation.markdown integrales.markdown integrales.markdown edo.markdown fourier.markdown probas_stats.markdown remerciements.markdown
macros: 00_macros.md
sed "1i ---\ndate: $(shell date +%y%y-%m-%d)\n---" $< > $@
rappel.markdown: macros 01_rappel.md 08_notes.md
cat $^ > $@
optimisation.markdown: macros 02_optimisation.md 08_notes.md
cat $^ > $@
integrales.markdown: macros 03_integrales.md 08_notes.md
cat $^ > $@
edo.markdown: macros 04_edo.md 08_notes.md
cat $^ > $@
fourier.markdown: macros 05_fourier.md 08_notes.md
cat $^ > $@
probas_stats.markdown: macros 06_probas_stats.md 08_notes.md
cat $^ > $@
remerciements.markdown: macros 07_remerciements.md 08_notes.md
cat $^ > $@
deploy: all
mkdir -p mti
cp cours.html mti/index.html
cp cours.pdf mti/cours.pdf
mkdir -p mti/tpIntegrales
make -C travaux_pratiques/tpIntegrales
cp travaux_pratiques/tpIntegrales/*.pdf mti/tpIntegrales/
cp travaux_pratiques/tpIntegrales/tp_integrales_conv.html mti/tpIntegrales/index.html
mkdir -p mti/tpEdo
make -C travaux_pratiques/tpEdo
cp travaux_pratiques/tpEdo/*.pdf mti/tpEdo/
cp travaux_pratiques/tpEdo/tpEquadiffs.html mti/tpEdo/index.html
mkdir -p mti/tpOptimisation
make -C travaux_pratiques/tpOptimisation
cp travaux_pratiques/tpOptimisation/*.pdf mti/tpOptimisation/
cp travaux_pratiques/tpOptimisation/tpOptimisation.html mti/tpOptimisation/index.html
clean:
rm -rf mti *.markdown macros *.html *.pdf