diff options
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 |