Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • covid
  • multiple_files
  • fourier_coeff
  • headers
  • revampProbStat
  • v1.0.5
  • v1.0.4
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
  • untagged-5f91b9934a0d64190e08
  • untagged-185a5c9790d5fd86d5a7
  • untagged-d08ea895726d1693fe75
  • untagged-0a69f730a9edf8f452c2
  • untagged-da21599a55453b349309
  • untagged-c23b343a32e6ba6b41ef
  • untagged-f970fb8b2d5aa387c7e1
  • untagged-82bd404cbb7da09ef714
  • untagged-9d1a8d01c160be73c2d7
  • untagged-a7d0fd1e09f98f58b2e7
  • untagged-67162b0c997bec772454
  • untagged-e4eb7c83718bffcd6dc3
  • untagged-942bdedb39bd9d9a9db2
  • untagged-2023d0fb6c34f29165ee
26 results

Makefile

Blame
  • Forked from orestis.malaspin / math_tech_info
    96 commits behind the upstream repository.
    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