mk: fix excluding files when installing docs
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 23 Jun 2017 18:41:47 +0000 (19:41 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 26 Jun 2017 23:16:22 +0000 (01:16 +0200)
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 <luca.boccassi@gmail.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
mk/rte.sdkinstall.mk

index dbac2a2..4e97fef 100644 (file)
@@ -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