summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-01-26 19:41:08 -0500
committerGaetan Nadon <memsize@videotron.ca>2010-01-26 19:41:08 -0500
commit9ca583c5d6fcf9cd8151ee7b019630b141d32fab (patch)
tree1a70113eec067d6e0effbcb4d1259294f31b5894
parenteb289b34bfc9978eef724e0f268975938334c06c (diff)
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>
-rw-r--r--specs/.gitignore2
-rw-r--r--specs/troffrules.in5
2 files changed, 5 insertions, 2 deletions
diff --git a/specs/.gitignore b/specs/.gitignore
index d8340d29..ac21ee43 100644
--- a/specs/.gitignore
+++ b/specs/.gitignore
@@ -6,4 +6,4 @@
*.html.raw
*.ps.raw
*.txt.raw
-grohtml-*.png
+images
diff --git a/specs/troffrules.in b/specs/troffrules.in
index 0cd7454b..8d87067c 100644
--- a/specs/troffrules.in
+++ b/specs/troffrules.in
@@ -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) $< $@