From 6efaa739604f9b22c69eb626b7c814addb1b0699 Mon Sep 17 00:00:00 2001 From: jaycedowell Date: Wed, 29 May 2024 15:28:48 -0600 Subject: [PATCH] Tie in the doc build flags with the top level Makefile. --- Makefile.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 852b2f951..3ba8ac79b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,8 +7,12 @@ DAT_DIR = share SRC_DIR = src HAVE_PYTHON = @HAVE_PYTHON@ + HAVE_DOCKER = @HAVE_DOCKER@ +CAN_BUILD_CXX_DOCS = @HAVE_CXX_DOCS@ +CAN_BUILD_PYTHON_DOCS = @HAVE_PYTHON_DOCS@ + BIFROST_PYTHON_DIR = python all: libbifrost python @@ -63,8 +67,13 @@ ifeq ($(HAVE_PYTHON),1) endif .PHONY: uninstall -doc: $(INC_DIR)/bifrost/*.h Doxyfile +doc: $(INC_DIR)/bifrost/*.h Doxyfile docs/source/*.rst docs/source/*.py +ifeq ($(CAN_BUILD_CXX_DOCS),1) @DX_DOXYGEN@ Doxyfile +endif +ifeq ($(CAN_BUILD_PYTHON_DOCS),1) + $(MAKE) -C docs singlehtml +endif .PHONY: doc python: libbifrost