Skip to content

Commit 161ec5d

Browse files
committed
squashme Address review comments
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 28cbf9d commit 161ec5d

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

HACKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Please see the content of this file in its new location:
1212
https://ompi.readthedocs.io/en/latest/developers/
1313

1414
Additionally, see
15-
file:///Users/jsquyres/git/ompi/docs/_build/html/developers/prerequisites.html#sphinx
15+
https://ompi.readthedocs.io/en/latest/developers/prerequisites.html#sphinx
1616
if you want to edit and build the documentation locally.

config/opal_setup_sphinx.m4

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ AC_DEFUN([OPAL_SETUP_SPHINX],[
2222
AC_MSG_RESULT([no])])
2323

2424
# To generate HTML docs + man pages, we need Sphinx. If we have
25-
# Sphinx, then we're able to install the docs (potentially
26-
# overriding opal_install_docs from what it was set above).
25+
# Sphinx, then we're able to both build and install the docs
26+
# (potentially overriding opal_install_docs from what it was set
27+
# above).
2728
AC_PATH_PROG([SPHINX_BUILD], [sphinx-build])
2829
AS_IF([test -n "$SPHINX_BUILD" && test -z "`echo $SPHINX_BUILD | $GREP missing`"],
2930
[ # If we're building, we're also installing, regardless of
3031
# whether we found pre-build docs or not (above).
3132
opal_install_docs=1],
3233
[SPHINX_BUILD=
3334
OPAL_MAKEDIST_DISABLE="$OPAL_MAKEDIST_DISABLE Sphinx/Documentation"
34-
AC_MSG_WARN([*** Could not find a suitable sphinx-build on your system.])
35-
AC_MSG_WARN([*** You will not be able to build a distribution tarball.])])
35+
AC_MSG_NOTICE([Could not find a suitable sphinx-build on your system.])
36+
AC_MSG_NOTICE([You will not be able to build a distribution tarball.])])
3637

3738
AS_IF([test $opal_install_docs -eq 0],
3839
[AC_MSG_WARN([*** You will not have documentation installed.])
@@ -45,12 +46,11 @@ AC_DEFUN([OPAL_SETUP_SPHINX],[
4546
# Construct a summary message. Due SUMMARY_ADD's implementation,
4647
# do *not* include a comma.
4748
AS_IF([test -n "$SPHINX_BUILD"],
49+
[ # If we found Sphinx, we always both build and install.
50+
summary_msg="building and installing"],
4851
[AS_IF([test $opal_install_docs -eq 1],
49-
[summary_msg="building and installing"],
50-
[summary_msg="building but not installing"])],
51-
[AS_IF([test $opal_install_docs -eq 1],
52-
[summary_msg="not building but installing"],
53-
[summary_msg="not building and not installing"])])
52+
[summary_msg="installing packaged docs"],
53+
[summary_msg="no documentation available"])])
5454

5555
OPAL_SUMMARY_ADD([Miscellaneous], [HTML docs and man pages], [],
5656
[$summary_msg])

docs/Makefile.am

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ EXTRA_DIST = \
3636
$(TEXT_SOURCES)
3737

3838
###########################################################################
39-
# Only build the docs if we have Sphinx
4039
if OPAL_BUILD_DOCS
4140

4241
include $(top_srcdir)/Makefile.ompi-rules
@@ -83,10 +82,6 @@ CLEANFILES += $(TOP_SENTINEL_FILE)
8382
endif # OPAL_BUILD_DOCS
8483

8584
###########################################################################
86-
# Only install the docs if a) we already have them built (e.g., if we're
87-
# in a distribution tarball), or b) we just built them, above.
88-
# configure takes care of setting this AM CONDITIONAL for us.
89-
9085
if OPAL_INSTALL_DOCS
9186

9287
dist_man1_MANS = $(OUTDIR)/man/*.1

0 commit comments

Comments
 (0)