Makefile 858 B

123456789101112131415161718192021222324252627282930313233343536
  1. SOURCE = quotes
  2. DELAY = 80
  3. DENSITY = 300
  4. WIDTH = 500
  5. make:
  6. pdflatex $(SOURCE).tex -output-format=pdf
  7. make clean
  8. clean:
  9. rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
  10. gif:
  11. pdfcrop $(SOURCE).pdf
  12. convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
  13. make clean
  14. png:
  15. make
  16. make svg
  17. inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
  18. transparentGif:
  19. convert $(SOURCE).pdf -transparent white result.gif
  20. make clean
  21. svg:
  22. make
  23. #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
  24. pdf2svg $(SOURCE).pdf $(SOURCE).svg
  25. # Necessary, as pdf2svg does not always create valid svgs:
  26. inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
  27. rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
  28. inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
  29. rm $(SOURCE)2.svg