VPP-189: fix coverity issue in api_format.c
[vpp.git] / doxygen / Makefile
index b75c9c6..0a69c2d 100644 (file)
@@ -40,10 +40,14 @@ DOXY_SRC_DIRECTORIES = \
 
 # Input directories and files
 DOXY_INPUT ?= \
-       README.md \
+       $(wildcard $(WS_ROOT)/*.md) \
+       $(wildcard $(DOXY_DIR)/*.md) \
        $(DOXY_SRC_DIRECTORIES) \
        plugins
 
+# Strip leading workspace path from input names
+DOXY_INPUT := $(subst $(WS_ROOT)/,,$(DOXY_INPUT))
+
 # Files to exclude, from pre-Doxygen steps, eg because they're
 # selectively compiled.
 # Examples would be to exclude non-DPDK related sources when
@@ -113,6 +117,10 @@ ifeq ($(OS_ID),ubuntu)
                        dpkg-query --show $$i >/dev/null 2>&1 || inst="$$inst $$i"; \
                done; \
                if [ "$$inst" ]; then sudo apt-get $(CONFIRM) $(FORCE) install $$inst; fi
+       @if [ ! -s /usr/lib/graphviz/config6a ]; then \
+               echo "Rebuidlding system Graphviz configuration."; \
+               sudo dot -c; \
+       fi
 else ifneq ("$(wildcard /etc/redhat-release)","")
        @sudo yum install $(CONFIRM) $(DOC_RPM_DEPENDS)
 else