From 25866f7509da2b024ba2f50d4b44c895c3974fc7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 8 May 2012 02:53:41 +0200 Subject: Diagrams. --- schemas/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 schemas/Makefile (limited to 'schemas/Makefile') diff --git a/schemas/Makefile b/schemas/Makefile new file mode 100644 index 0000000..8e81fda --- /dev/null +++ b/schemas/Makefile @@ -0,0 +1,33 @@ +BUILD=ldap network + +RUBBER=rubber --warn boxes --warn refs +PDF=$(patsubst %, %.pdf, $(BUILD)) +SVG=$(patsubst %, %.svg, $(BUILD)) + +.PHONY: all force clean cleanall +# let rubber take care of the pdf dependencies +.PHONY: $(BUILD) all dvi ps pdf force clean wc + +all: pdf + +dvi: pdf +ps: pdf +pdf: $(PDF) +svg: $(SVG) + +%.pdf: %.tex + $(RUBBER) --pdf $< + +%.svg: %.pdf + inkscape $^ --export-plain-svg=$@ + +force: + for I in $(BUILD); do $(RUBBER) --force --pdf "$$I"; done + +clean: + for I in $(BUILD); do $(RUBBER) --clean --ps --pdf "$$I"; done + rm $(SVG) + + +wc: $(PDF) + @for I in $^; do echo -n "$$I: "; ps2ascii "$$I" | wc -w; done -- cgit v1.2.3