]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make building docs easier in an unconfigured tree
authorBen Kaduk <kaduk@mit.edu>
Tue, 11 Dec 2012 05:13:30 +0000 (00:13 -0500)
committerBen Kaduk <kaduk@mit.edu>
Tue, 11 Dec 2012 21:34:58 +0000 (16:34 -0500)
Instead of requiring the user to specify srcdir, top_srcdir, PYTHON,
and possibly more in the future, make an 'htmlsrc' target that does so
for them.

This also lets us do the clean in the same step, so that only one
command is required of the user.

ticket: 7491 (new)
tags: pullup
target_version: 1.11

doc/build_this.rst
src/doc/Makefile.in

index 26ba0479c0f68c9d2fabe90f176b0d75c18585f5..4177f58ddbc9ce2589556a90ad67e78ac87fa932 100644 (file)
@@ -62,8 +62,7 @@ paths.
 You can also do this from an unconfigured source tree with::
 
     cd src/doc
-    make -f Makefile.in top_srcdir=.. srcdir=. PYTHON=python html
-    make -f Makefile.in clean
+    make -f Makefile.in htmlsrc
 
 
 Building for an OS package or site documentation
index 5f378bc8509928917686917bad643cf897b37f5a..1d977284aaa9697222d4b7c5fa220dd3c8f4cdc4 100644 (file)
@@ -36,13 +36,16 @@ LATEXOPTS=
 # Create HTML documentation in $(docsrc)/html suitable for a
 # release tarball or the web site (that is, without substitutions for
 # configured paths).  This can be done in an unconfigured source tree
-# with:
-#     make -f Makefile.in srcdir=. top_srcdir=.. PYTHON=python html
-#     make -f Makefile.in clean
+# as:
+#     make -f Makefile.in htmlsrc
 html: composite
        rm -rf $(docsrc)/html
        $(SPHINX_BUILD) -q rst_composite $(docsrc)/html
 
+# Dummy target for use in an unconfigured source tree.
+htmlsrc:
+       $(MAKE) -f Makefile.in srcdir=. top_srcdir=.. PYTHON=python html clean
+
 # Create HTML documentation in html_subst suitable for
 # installation by an OS package, with substitutions for configured
 # paths.