[PATCH libX11] doc: clean-up generated html images

Gaetan Nadon memsize at videotron.ca
Tue Jan 26 16:47:54 PST 2010


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 at videotron.ca>
---
 specs/.gitignore    |    2 +-
 specs/troffrules.in |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/specs/.gitignore b/specs/.gitignore
index d8340d2..ac21ee4 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 0cd7454..8d87067 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) $< $@
-- 
1.6.0.4

The generated images are the "figures" in the document. Most are zero byte
or munged up. The images are legit and it's good to have them in a separate directory.


More information about the xorg-devel mailing list