From: Luca Boccassi Date: Fri, 23 Jun 2017 18:41:47 +0000 (+0100) Subject: mk: fix excluding files when installing docs X-Git-Tag: spdx-start~2959 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=68918a3b1c03b642dfdcf13568790de55982e64c;p=dpdk.git mk: fix excluding files when installing docs The --exclude parameter must be passed before the input directory to tar, otherwise it's silently ignored and the .doctrees directory is installed by make install-doc. Signed-off-by: Luca Boccassi Acked-by: John McNamara --- diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index dbac2a2774..4e97feff9f 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -162,7 +162,7 @@ install-sdk: install-doc: ifneq ($(wildcard $O/doc/html),) $(Q)$(call rte_mkdir, $(DESTDIR)$(docdir)) - $(Q)tar -cf - -C $O/doc html --exclude 'html/guides/.*' | \ + $(Q)tar -cf - -C $O/doc --exclude 'html/guides/.*' html | \ tar -xf - -C $(DESTDIR)$(docdir) --strip-components=1 \ --keep-newer-files endif