From patchwork Fri Jan 8 11:03:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Ehrhardt X-Patchwork-Id: 9777 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A49AFC316; Fri, 8 Jan 2016 12:03:11 +0100 (CET) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by dpdk.org (Postfix) with ESMTP id 1DC6BC310 for ; Fri, 8 Jan 2016 12:03:10 +0100 (CET) Received: from 1.general.mandel.uk.vpn ([10.172.196.172] helo=Weiknorze.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1aHUp3-0003DG-J3; Fri, 08 Jan 2016 11:03:09 +0000 From: Christian Ehrhardt To: dev@dpdk.org Date: Fri, 8 Jan 2016 12:03:01 +0100 Message-Id: <1452250981-5286-1-git-send-email-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] mk: Fix examples install X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 existant "$(DESTDIR)$(datadir)" target directory. Add the conditional rte_mkdir for that to avoid the issue. Signed-off-by: Christian Ehrhardt Acked-by: Thomas Monjalon --- [diffstat] rte.sdkinstall.mk | 1 + 1 file changed, 1 insertion(+) [diff] diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index c159bf7..68e56b6 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)