Newer
Older
Publications / TOIT_2006 / Makefile
  1. .SUFFIXES: .eps .dvi .ps .bbl .bib .tex .plo .tif .pdf
  2.  
  3.  
  4. SHELL=/bin/sh
  5.  
  6.  
  7. lineplot = ploticus -eps -tightcrop -o $(1).eps lineplot.plo infile=$(2) \
  8. title=$(3) ytitle=$(4) ymin=$(5) ymax=$(6); \
  9. epstopdf $(1).eps; \
  10. rm -f $(1).eps
  11.  
  12.  
  13.  
  14. GRAPHICS:=ImageGeneration-full.png GoogleMap-full.png \
  15. jpeg_detail.png overlay_detail.png \
  16. tasmania_stats.pdf data_size.pdf data_generation_time.pdf \
  17. page_load_time.pdf combined_time.pdf real_memory.pdf virtual_memory.pdf \
  18. data_server.pdf image_server.pdf model_interaction.pdf shared.pdf \
  19. 16384_points.png
  20.  
  21.  
  22. Map_Visualisation.pdf: Map_Visualisation.tex Map_Visualisation.bib $(GRAPHICS)
  23. pdflatex $<
  24. bibtex $*
  25. pdflatex $<
  26. pdflatex $<
  27.  
  28.  
  29. jpeg_detail.png: ImageGeneration-full.png
  30. convert -crop 180x95+150+95 $< $@
  31.  
  32. overlay_detail.png: PointOverlay-full.png
  33. convert -crop 180x95+150+95 $< $@
  34.  
  35. data_size.pdf: d_data_size.txt lineplot.plo
  36. $(call lineplot,$*,$<,'Size of Generated Data','Data size (kB)',1,200000)
  37.  
  38. data_generation_time.pdf: d_data_generation_time.txt lineplot.plo
  39. $(call lineplot,$*,$<,'Data Generation Time','Average time to generate data at server (s)',0.001,2000)
  40.  
  41. page_load_time.pdf: d_page_load_time.txt lineplot.plo
  42. $(call lineplot,$*,$<,'Map Display Time','Average time to display map at client (s)',0.001,2000)
  43.  
  44. combined_time.pdf: d_combined_time.txt lineplot.plo
  45. $(call lineplot,$*,$<,'Combined Page Load Time','Average time to generate data and display map (s)',0.001,2000)
  46.  
  47. real_memory.pdf: d_real_memory.txt lineplot.plo
  48. $(call lineplot,$*,$<,'Real Memory Usage','Browser real memory size (MB)',10,1200)
  49.  
  50. virtual_memory.pdf: d_virtual_memory.txt lineplot.plo
  51. $(call lineplot,$*,$<,'Virtual Memory Usage','Browser virtual memory size (MB)',10,1200)
  52.  
  53. %.pdf: %.svg
  54. inkscape --file=$< --export-text-to-path --without-gui --export-eps=$*.eps
  55. ps2eps --ignoreBB --nohires --loose --gsbbox < $*.eps | ps2pdf -dEPSCrop - $@
  56. rm -f $*.eps
  57.  
  58. clean:
  59. rm -f *.aux *.bbl *.blg *.log *.dvi *.ps Map_Visualisation.pdf
  60.  
  61.  
  62. %.pdf: %.ps
  63. ps2pdf -dNOCACHE $< $@
  64.  
  65. %.ps: %.dvi
  66. dvips -o $@ $<
  67.  
  68. %.dvi: %.tex
  69. latex $<
  70. latex $<
  71.  
  72. %.eps: %.tif
  73. convert $< $@