summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2017-04-06 12:44:33 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-04-06 16:29:32 +0200
commit75206638efbbe5248f3d07df27dc4f1dcb24bb77 (patch)
tree2d7b7150c2c568278556a8fc053d5ca9782513ec
parent947d949de7de5e554e51f5fd48a6e989d80b7675 (diff)
downloaddpdk-75206638efbbe5248f3d07df27dc4f1dcb24bb77.zip
dpdk-75206638efbbe5248f3d07df27dc4f1dcb24bb77.tar.gz
dpdk-75206638efbbe5248f3d07df27dc4f1dcb24bb77.tar.xz
mk: build examples list before each doxygen run
The file examples.dox was not re-generated when a file is added or removed from examples/. It is now removed on clean operation. The ordering of operations (clean before generation) is also better defined. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
-rw-r--r--mk/rte.sdkdoc.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk
index 39c67a9..fb8f915 100644
--- a/mk/rte.sdkdoc.mk
+++ b/mk/rte.sdkdoc.mk
@@ -68,7 +68,7 @@ all: api-html guides-html guides-pdf
clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean
.PHONY: api-html
-api-html: api-html-clean $(API_EXAMPLES)
+api-html: $(API_EXAMPLES)
@echo 'doxygen for API...'
$(Q)mkdir -p $(RTE_OUTPUT)/doc/html
$(Q)(cat $(RTE_SDK)/doc/api/doxy-api.conf && \
@@ -85,11 +85,12 @@ api-html: api-html-clean $(API_EXAMPLES)
.PHONY: api-html-clean
api-html-clean:
+ $(Q)rm -f $(API_EXAMPLES)
$(Q)rm -f $(RTE_OUTPUT)/doc/html/api/*
$(Q)rmdir -p --ignore-fail-on-non-empty $(RTE_OUTPUT)/doc/html/api 2>&- || true
-$(API_EXAMPLES):
- $(Q)mkdir -p $(RTE_OUTPUT)/doc/html
+$(API_EXAMPLES): api-html-clean
+ $(Q)mkdir -p $(@D)
@printf '/**\n' > $(API_EXAMPLES)
@printf '@page examples DPDK Example Programs\n\n' >> $(API_EXAMPLES)
@find examples -type f -name '*.c' -printf '@example %p\n' >> $(API_EXAMPLES)