Makefile 908 B

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