From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 0A65D8E85 for ; Wed, 2 Dec 2015 04:59:28 +0100 (CET) Received: by wmww144 with SMTP id w144so39976667wmw.0 for ; Tue, 01 Dec 2015 19:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W0jiDPyEay58LtkvJFQm+fgIlgw6jjsq2FhsMbdXpyA=; b=H+cBqRIOJt8RjeiVA+/YRStVxuLrdbsXa1FV1i3Lj6A2VfT8IQZrqqSGFs7YWnCJYo 85HrJr4W6cgLr84U5kU3W8VaW8uDnM3+ZR/oYww8EJr0AG7evORhMO+BwkaoJsj8bmJM Je6z0PRqmQKDCI/dnf6XveqUlQhc2vbpjitXxRs0ICFturiE7fhHNC0YY4XkJTyxoKN1 nptj6SlQggWjOtmtMI4TidiH3KCtWmF7fzQB8OfxrfjKZEhuBBcR1qdLZW15JoqrUkxq aHoS16wWC2FKYlbKZ6SY8D5lC0Yln8o9rf86fTo22YZpGlNSPgIV1iu5n3gRSAK1m5e/ C+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W0jiDPyEay58LtkvJFQm+fgIlgw6jjsq2FhsMbdXpyA=; b=kFmXJxkh6zVTZvQvaP3RRua6Jeppx3eK1+hSHTQhqZQuvEiF+LO81bwaMtpg6Qb6iv sFeZCnfB3DSZpL12qehB4XBA4rnuOJA6weUvaX97hQ1b8ugTuzrixgN99b+pe9gyvzVh uvJputcg6ftV7GbdjlJNalBMopne6egV6rvPqaJtARl+QGcBdq04hUR9RT4nDAyogL2F 3riOCeQtWKGp5CeeDCrKLwdzuRMq8YraGRuGhN7k5F4C30C4qpfE2id438ACu33SrcUi HpmptoGWZsiV8y2obsulysgvqYqxoubCRmCxeW/iNqwx8i1hrQ/8RkfMf8Z5PafX970Y kTiA== X-Gm-Message-State: ALoCoQl1o2ebgHR/GaDQjheRqx6FBur6t4gdIALpk6obJ72yaPzFD3xSEjERaPYKstxqbF6YmZe6 X-Received: by 10.194.185.234 with SMTP id ff10mr1503709wjc.170.1449028767946; Tue, 01 Dec 2015 19:59:27 -0800 (PST) Received: from XPS13.ibrowse.com ([93.158.52.3]) by smtp.gmail.com with ESMTPSA id h5sm783942wjz.21.2015.12.01.19.59.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Dec 2015 19:59:27 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 2 Dec 2015 04:57:54 +0100 Message-Id: <1449028676-19232-9-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> References: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 08/10] mk: install doc 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: , X-List-Received-Date: Wed, 02 Dec 2015 03:59:28 -0000 The HTML API and HTML/PDF guides may be installed if generated. Signed-off-by: Thomas Monjalon --- mk/rte.sdkinstall.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index d6df30c..6a26d5b 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -42,6 +42,7 @@ sbindir ?= $(exec_prefix)/sbin libdir ?= $(exec_prefix)/lib includedir ?= $(prefix)/include/dpdk datarootdir ?= $(prefix)/share +docdir ?= $(datarootdir)/doc/dpdk datadir ?= $(datarootdir)/dpdk sdkdir ?= $(datadir) @@ -127,3 +128,13 @@ install-sdk: $(Q)cp -a $(RTE_SDK)/{mk,scripts} $(DESTDIR)$(sdkdir) $(Q)$(call rte_symlink, $(DESTDIR)$(includedir), $(DESTDIR)$(sdkdir)/include) $(Q)$(call rte_symlink, $(DESTDIR)$(libdir), $(DESTDIR)$(sdkdir)/lib) + +install-doc: + $(Q)$(call rte_mkdir, $(DESTDIR)$(docdir)) + $(Q)tar -cf - -C $O/doc html --exclude 'html/guides/.*' | \ + tar -xf - -C $(DESTDIR)$(docdir) --strip-components=1 \ + --keep-newer-files --warning=no-ignore-newer +ifneq '$(wildcard $O/doc/*/*/*pdf)' '' + $(Q)$(call rte_mkdir, $(DESTDIR)$(docdir)/guides) + $(Q)cp -a $O/doc/*/*/*pdf $(DESTDIR)$(docdir)/guides +endif -- 2.5.2