Makefile 667 B

12345678910111213141516171819202122232425262728
  1. SOURCE = time-conversion
  2. make:
  3. pdflatex $(SOURCE).tex -output-format=pdf
  4. make clean
  5. clean:
  6. rm -rf $(TARGET) *.class *.html *.log *.aux *.out
  7. gif:
  8. pdfcrop $(SOURCE).pdf
  9. convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
  10. make clean
  11. png:
  12. make
  13. make svg
  14. inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
  15. transparentGif:
  16. convert $(SOURCE).pdf -transparent white result.gif
  17. make clean
  18. svg:
  19. #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
  20. pdf2svg $(SOURCE).pdf $(SOURCE).svg
  21. # Necessary, as pdf2svg does not always create valid svgs:
  22. inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg