summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-11-06 17:42:12 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-11-06 20:53:23 +0100
commitf0e64da62c9dc8eb17a0c970ef241cf4941f9749 (patch)
treed1020d4b57393843efaa1819c5c81fdf9a7d1f6c
parentca9b8b960bea38b256ebbfe555b024df0835744d (diff)
downloaddpdk-f0e64da62c9dc8eb17a0c970ef241cf4941f9749.zip
dpdk-f0e64da62c9dc8eb17a0c970ef241cf4941f9749.tar.gz
dpdk-f0e64da62c9dc8eb17a0c970ef241cf4941f9749.tar.xz
mk: fix install-doc without html
When trying to install PDF, man pages or examples without having built neither HTML API nor HTML guides, there was an error: % make install-doc tar: html: Cannot stat: No such file or directory The fix is to check the html directory before installing HTML files. Fixes: e4552b9cc603 ("mk: install doc") Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
-rw-r--r--mk/rte.sdkinstall.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk
index 004b38b..7b0d8b5 100644
--- a/mk/rte.sdkinstall.mk
+++ b/mk/rte.sdkinstall.mk
@@ -164,7 +164,7 @@ install-sdk:
$(Q)$(call rte_symlink, $(DESTDIR)$(libdir), $(DESTDIR)$(targetdir)/lib)
install-doc:
-ifneq ($(wildcard $O/doc),)
+ifneq ($(wildcard $O/doc/html),)
$(Q)$(call rte_mkdir, $(DESTDIR)$(docdir))
$(Q)tar -cf - -C $O/doc html --exclude 'html/guides/.*' | \
tar -xf - -C $(DESTDIR)$(docdir) --strip-components=1 \