Makefile 1.2 KB

1234567891011121314151617181920
  1. all:
  2. pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html src/pre/*.md src/*.md src/end/*.md -o index.html
  3. iot:
  4. pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html end/iot.md -o iot.html
  5. chapter:
  6. find src/ -name \*.md -type f -exec pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head-chapter.html -o {}.html {} \;
  7. mv src/*/*.html build/
  8. mv src/*.html build/
  9. epub:
  10. pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md src/end/*.md -o build/pdf.html
  11. pandoc build/pdf.html -o build/designiot.epub
  12. release:
  13. pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md src/end/*.md -o build/pdf.html
  14. pandoc --template=template/template.tex build/pdf.html -o build/iot.pdf --latex-engine=xelatex
  15. pandoc build/pdf.html -o build/designiot.epub
  16. pandoc build/pdf.html -o build/designiot.mobi