summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-09-11 21:42:34 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-18 15:49:48 +0200
commit98d05387961fcd1d7524d6ac09f6af09ea5d86d3 (patch)
tree77818b96da844dd3a127bb79e7cdf1163031ed67 /mk
parent8260f4f98cfea2de16e0ba4bfc8e2d530c67607f (diff)
downloaddpdk-next-eventdev-98d05387961fcd1d7524d6ac09f6af09ea5d86d3.zip
dpdk-next-eventdev-98d05387961fcd1d7524d6ac09f6af09ea5d86d3.tar.gz
dpdk-next-eventdev-98d05387961fcd1d7524d6ac09f6af09ea5d86d3.tar.xz
mk: use templated doxygen config
This will allow the same config file to be used from Meson. The result has been verified to be identical via diffoscope. Signed-off-by: Luca Boccassi <bluca@debian.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkdoc.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
index d023b72..c44db64 100644
--- a/mk/rte.sdkdoc.mk
+++ b/mk/rte.sdkdoc.mk
@@ -43,15 +43,13 @@ clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean
api-html: $(API_EXAMPLES)
@echo 'doxygen for API...'
$(Q)mkdir -p $(RTE_OUTPUT)/doc/html
- $(Q)(cat $(RTE_SDK)/doc/api/doxy-api.conf && \
- printf 'PROJECT_NUMBER = ' && \
- $(MAKE) -rRs showversion && \
- echo INPUT += $(API_EXAMPLES) && \
- echo OUTPUT_DIRECTORY = $(RTE_OUTPUT)/doc && \
- echo HTML_OUTPUT = html/api && \
- echo GENERATE_HTML = YES && \
- echo GENERATE_LATEX = NO && \
- echo GENERATE_MAN = NO )| \
+ $(Q)(sed -e "s|@VERSION@|`$(MAKE) -rRs showversion`|" \
+ -e "s|@API_EXAMPLES@|$(API_EXAMPLES)|" \
+ -e "s|@OUTPUT@|$(RTE_OUTPUT)/doc|" \
+ -e "s|@HTML_OUTPUT@|html/api|" \
+ -e "s|@TOPDIR@|./|g" \
+ -e "s|@STRIP_FROM_PATH@|./|g" \
+ $(RTE_SDK)/doc/api/doxy-api.conf.in)| \
doxygen -
$(Q)$(RTE_SDK)/doc/api/doxy-html-custom.sh $(RTE_OUTPUT)/doc/html/api/doxygen.css