]> code.communitydata.science - ml_measurement_error_public.git/blob - charts/Makefile
refactor example charts
[ml_measurement_error_public.git] / charts / Makefile
1 #!/usr/bin/make
2
3 all: $(patsubst %.tex,%.svg,$(wildcard *.tex)) $(patsubst %.tex,%.png,$(wildcard *.tex)) 
4
5 %.png: %.pdf
6         convert -density 300 -transparent white $< $@
7
8 %.svg: %.pdf
9         /usr/bin/inkscape $< --export-plain-svg --export-type=svg --export-filename=$@
10
11 %.pdf: %.tex 
12         latexmk -f -pdf $<
13
14 clean: 
15         latexmk -C *.tex
16         rm -f *.tmp
17         rm -f vc
18         rm *.svg
19
20
21 viewpdf: all
22         evince *.pdf
23
24 vc:
25         vc-git
26
27 pdf: all
28
29 .PHONY: clean all

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