| 1 |
# doc/src/sgml/images/Makefile |
| 2 |
# |
| 3 |
# see README in this directory about image handling |
| 4 |
|
| 5 |
ALL_IMAGES = \ |
| 6 |
genetic-algorithm.svg \ |
| 7 |
gin.svg \ |
| 8 |
pagelayout.svg |
| 9 |
|
| 10 |
DITAA = ditaa |
| 11 |
DOT = dot |
| 12 |
XSLTPROC = xsltproc --nonet |
| 13 |
|
| 14 |
all: $(ALL_IMAGES) |
| 15 |
|
| 16 |
%.svg.tmp: %.gv |
| 17 |
$(DOT) -T svg -o $@ $< |
| 18 |
|
| 19 |
%.svg.tmp: %.txt |
| 20 |
$(DITAA) -E -S --svg $< $@ |
| 21 |
|
| 22 |
# Post-processing for SVG files coming from other tools |
| 23 |
# |
| 24 |
# Use --novalid to avoid loading SVG DTD if a file specifies it, since |
| 25 |
# it might not be available locally, and we don't need it. |
| 26 |
%.svg: %.svg.tmp fixup-svg.xsl |
| 27 |
$(XSLTPROC) --novalid -o $@ $(word 2,$^) $< |