diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-08 02:53:41 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-08 02:53:41 +0200 |
commit | 25866f7509da2b024ba2f50d4b44c895c3974fc7 (patch) | |
tree | 00d9b802314ac2014f6981311df9902938055add /schemas/Makefile | |
parent | 87910cd5f92cdb9d928864e599c905f97e463f2f (diff) |
Diagrams.
Diffstat (limited to 'schemas/Makefile')
-rw-r--r-- | schemas/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
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 |