Makefile 727 B

123456789101112131415161718192021222324252627282930313233
  1. SOURCE = draw-csv
  2. DELAY = 80
  3. DENSITY = 300
  4. WIDTH = 500
  5. make:
  6. gnuplot plot.gnuplot
  7. pdflatex $(SOURCE).tex -output-format=pdf
  8. make clean
  9. clean:
  10. rm -rf $(TARGET) *.class *.html *.log *.aux plot-tmp.tex
  11. gif:
  12. pdfcrop $(SOURCE).pdf
  13. convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
  14. make clean
  15. png:
  16. make
  17. make svg
  18. inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
  19. transparentGif:
  20. convert $(SOURCE).pdf -transparent white result.gif
  21. make clean
  22. svg:
  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