diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-10 16:35:24 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-10 20:49:09 +0200 |
commit | 460731bcf9cf9ffec50d5761cd63887a72a93b3d (patch) | |
tree | 7010a95d93c6cf502299d9000db34fa80e934546 /figures/Makefile | |
parent | 2e41eb3c10282d87eab6b3a2f9fa9d16ed3b480a (diff) |
Better colors and presentation.
Diffstat (limited to 'figures/Makefile')
-rw-r--r-- | figures/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/figures/Makefile b/figures/Makefile new file mode 100644 index 0000000..0b2fd5a --- /dev/null +++ b/figures/Makefile @@ -0,0 +1,35 @@ +BUILD=ldap network + +PDF=$(patsubst %,%.pdf,$(BUILD)) +SVG=$(patsubst %,%.svg,$(BUILD)) +PNG=$(patsubst %,%.png,$(BUILD)) + +.PHONY: all force clean cleanall +# let rubber take care of the pdf dependencies +.PHONY: $(BUILD) all dvi ps pdf svg png clean wc + +all: pdf + +dvi: pdf +ps: pdf +pdf: $(PDF) +svg: $(SVG) +png: $(PNG) + + +%.svg: %.pdf + inkscape $*-cropped.pdf --export-plain-svg=$@ + +%.png: %.pdf +# inkscape $^ --export-area-drawing --export-png=$@ + convert -density 120 -quality 85 $*-cropped.pdf $@ + +%.pdf: %.tex + pdflatex -shell-escape $^ + +clean: + rm -rf *.aux *.log *.auxlock network-cropped* ldap-cropped* $(PDF) $(SVG) $(PNG) + + +wc: $(PDF) + @for I in $^; do echo -n "$$I: "; ps2ascii "$$I" | wc -w; done |