Makefile 680 B

1234567891011121314151617181920212223242526272829
  1. SOURCE=normal-distribution-z
  2. DELAY = 80
  3. DENSITY = 300
  4. WIDTH = 512
  5. make:
  6. pdflatex $(SOURCE).tex -output-format=pdf
  7. make clean
  8. clean:
  9. rm -rf $(TARGET) *.class *.html *.log *.aux *.out
  10. png:
  11. make
  12. make svg
  13. inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
  14. transparentGif:
  15. convert $(SOURCE).pdf -transparent white result.gif
  16. make clean
  17. svg:
  18. #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
  19. pdf2svg $(SOURCE).pdf $(SOURCE).svg
  20. # Necessary, as pdf2svg does not always create valid svgs:
  21. inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
  22. rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
  23. rm $(SOURCE)1.svg