]> code.communitydata.science - ml_measurement_error_public.git/blobdiff - charts/Makefile
refactor example charts
[ml_measurement_error_public.git] / charts / Makefile
diff --git a/charts/Makefile b/charts/Makefile
new file mode 100644 (file)
index 0000000..4288d05
--- /dev/null
@@ -0,0 +1,29 @@
+#!/usr/bin/make
+
+all: $(patsubst %.tex,%.svg,$(wildcard *.tex)) $(patsubst %.tex,%.png,$(wildcard *.tex)) 
+
+%.png: %.pdf
+       convert -density 300 -transparent white $< $@
+
+%.svg: %.pdf
+       /usr/bin/inkscape $< --export-plain-svg --export-type=svg --export-filename=$@
+
+%.pdf: %.tex 
+       latexmk -f -pdf $<
+
+clean: 
+       latexmk -C *.tex
+       rm -f *.tmp
+       rm -f vc
+       rm *.svg
+
+
+viewpdf: all
+       evince *.pdf
+
+vc:
+       vc-git
+
+pdf: all
+
+.PHONY: clean all

Community Data Science Collective || Want to submit a patch?