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