From 46812756f60a043bc31df9488e3640028081b1e5 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Fri, 8 Jan 2016 12:03:01 +0100 Subject: [PATCH] mk: fix examples install 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 Acked-by: Thomas Monjalon --- mk/rte.sdkinstall.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index c159bf7cb7..68e56b68e6 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -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) -- 2.20.1