docs-common Makefile.common,1.6,1.7

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Tue Jul 12 15:28:39 UTC 2005


Author: jtr

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3961

Modified Files:
	Makefile.common 
Log Message:
Added "make view" target to display the HTML-formatted document using the
htmlview(1) tool's default viewier.



Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile.common	29 Jun 2005 14:41:37 -0000	1.6
+++ Makefile.common	12 Jul 2005 15:28:36 -0000	1.7
@@ -53,6 +53,15 @@
 	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.
 




More information about the Fedora-docs-commits mailing list