summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.common9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index a7ad267..5ba4f83 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -53,6 +53,15 @@ html-nochunks $(DOCNAME).html:: ${XMLFILE} ${XMLEXTRAFILES}
cp ../docs-common/stylesheet-images/*.png stylesheet-images
cp ../docs-common/css/fedora.css .
+# The "view" target ensures that the HTML version of the document is built
+# then displays it using the "htmlview" tool to start up the browser. It
+# assumes that the current working directory is immediately above the HTML
+# document directory. (We could change this if we wanted to futz around
+# with making up an absolute pathname, but why bother.)
+
+view:: ${DOCNAME}/index.html
+ /usr/bin/htmlview file://localhost/${PWD}/${DOCNAME}/index.html
+
# The "clean" or "distclean" target will remove all generated and temporary
# files.