Makefile 1.0 KB

123456789101112131415161718192021222324252627
  1. SOURCE = GeoTopo
  2. make:
  3. sketch figures/torus.sketch > figures/torus.tex
  4. pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # aux-files for makeindex / makeglossaries
  5. makeindex $(SOURCE)
  6. pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # include index
  7. pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # include symbol table
  8. make clean # remove intermediate files like *.log and *.aux
  9. ebook:
  10. latexml --dest=$(SOURCE).xml $(SOURCE).tex
  11. latexmlpost -dest=$(SOURCE).html $(SOURCE).xml
  12. ebook-convert $(SOURCE).html $(SOURCE).epub --language de --no-default-epub-cover
  13. all:
  14. cd definitions;make
  15. sed -i 's/\\newif\\ifAFive\\AFivefalse/\\newif\\ifAFive\\AFivetrue/' GeoTopo.tex
  16. make
  17. mv GeoTopo.pdf other-formats/GeoTopo-A5.pdf
  18. sed -i 's/\\newif\\ifAFive\\AFivetrue/\\newif\\ifAFive\\AFivefalse/' GeoTopo.tex
  19. make
  20. clean:
  21. rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.thm *.idx *.toc *.ind *.ilg figures/torus.tex *.glg *.glo *.gls *.ist *.xdy *.fdb_latexmk *.bak