mk: fix examples install
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Fri, 8 Jan 2016 11:03:01 +0000 (12:03 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 19 Jan 2016 08:18:26 +0000 (09:18 +0100)
Depending on non-doc targets being built before and the setting of DESTDIR
the copy of the examples dir being part of install-doc could in some cases
fail with a non existent "$(DESTDIR)$(datadir)" target directory.
Add the conditional rte_mkdir for that to avoid the issue.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/rte.sdkinstall.mk

index c159bf7..68e56b6 100644 (file)
@@ -157,4 +157,5 @@ ifneq ($(wildcard $O/doc/*/*/*pdf),)
        $(Q)$(call rte_mkdir,     $(DESTDIR)$(docdir)/guides)
        $(Q)cp -a $O/doc/*/*/*pdf $(DESTDIR)$(docdir)/guides
 endif
+       $(Q)$(call rte_mkdir,         $(DESTDIR)$(datadir))
        $(Q)cp -a $(RTE_SDK)/examples $(DESTDIR)$(datadir)