doc: clean-up generated html images

Generate images in /images as is the convention
Provide a base file name for images rather than process ID
Remove images directory when running make clean

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
Gaetan Nadon 2010-01-26 19:41:08 -05:00
parent eb289b34bf
commit 9ca583c5d6
2 changed files with 5 additions and 2 deletions

2
specs/.gitignore vendored
View file

@ -6,4 +6,4 @@
*.html.raw
*.ps.raw
*.txt.raw
grohtml-*.png
images

View file

@ -39,6 +39,9 @@ doc_DATA = $(doc_sources:.ms=.txt) \
CLEANFILES = $(doc_DATA)
MOSTLYCLEANFILES = index.*
mostlyclean-local:
@rm -fr images
# Pass version string as a troff string for substitution
GROFF_DEFS = -dxV="$(PACKAGE_STRING)"
@ -57,7 +60,7 @@ SUFFIXES = .ms .ps .txt .html .pdf
$< 2> index.$@.raw > $@
.ms.html:
$(AM_V_GEN) $(GROFF) -Thtml $(GROFF_FLAGS) $< 2> index.$@.raw > $@
$(AM_V_GEN) $(GROFF) -Thtml -P-Dimages -P-I$*-image $(GROFF_FLAGS) $< 2> index.$@.raw > $@
.ps.pdf:
$(AM_V_GEN) $(PS2PDF) $< $@