Newer
Older
Digital_Repository / OARiNZ / DIY / Makefile
  1. .SUFFIXES: .eps .dvi .ps .bbl .bib .tex .plo .tif .pdf
  2.  
  3.  
  4. SHELL=/bin/sh
  5.  
  6.  
  7. IMGDIR=images
  8.  
  9.  
  10. vpath %.svg $(IMGDIR)
  11. vpath %.pdf $(IMGDIR)
  12.  
  13.  
  14. GRAPHICS:=bare_metal.pdf existing_system.pdf reconfigure.pdf
  15.  
  16.  
  17. DIY_spec.pdf: DIY_spec.tex $(GRAPHICS)
  18. pdflatex $<
  19. # bibtex $*
  20. # pdflatex $<
  21. pdflatex $<
  22.  
  23.  
  24. %.pdf: %.svg
  25. inkscape --file=$< --export-text-to-path --without-gui --export-eps=$(IMGDIR)/$*.eps
  26. ps2eps --ignoreBB --nohires --loose --gsbbox < $(IMGDIR)/$*.eps | ps2pdf -dEPSCrop - $(IMGDIR)/$@
  27. rm -f $(IMGDIR)/$*.eps
  28.  
  29. clean:
  30. rm -f *.aux *.bbl *.blg *.log *.dvi *.ps Map_Visualisation.pdf
  31.  
  32.  
  33. %.pdf: %.ps
  34. ps2pdf -dNOCACHE $< $@
  35.  
  36. %.ps: %.dvi
  37. dvips -o $@ $<
  38.  
  39. %.dvi: %.tex
  40. latex $<
  41. latex $<
  42.  
  43. %.eps: %.tif
  44. convert $< $@