From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 19EB08E5B for ; Thu, 3 Dec 2015 06:03:51 +0100 (CET) Received: by wmww144 with SMTP id w144so6493975wmw.0 for ; Wed, 02 Dec 2015 21:03:51 -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=GYxvRwQm82sYk4d0WrIC49SgIoaK/VxDtu+ayNYhrnY=; b=0zJlQeyCYiMnvo+CUFik9TBtpfEI49TJBLaaQXR87SIomw6/JwQUM5qhJX/f7k5/dK t0vrBVtjG2/oM2CZ34lEicrtvGCZR2kCV71xI0Z0i99R1I67b5zRmSYsC+QOKU17D2ay w2KSUwRlzkGfBN1Zode+vJv/CX6ez8nuNz5My0Qu2RcBmRaj61PsTkHOjeC2pMpGMnML kYMLcDc4tOITT/zMWJUZvFtSIKTVovmrEwAEIdeUKtAvuMXasaylMzv1vshNRlvJ3aKn rXVwhASN4wY/u9TQIPr5hYkWtc0LJN2pnYbBdHLEKqBS6BUicnYJ+sYmsgQ762atnCEC xRLw== 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=GYxvRwQm82sYk4d0WrIC49SgIoaK/VxDtu+ayNYhrnY=; b=UojzNXLTMNY7XaoHM+cO7vl4klLtXTbufJAkU8bqk946S9tqCh0e7KFBV4IUkUaQEP g96LJr0rzTDT7VwQgr4tPY4NWIqUTH5OvxYsd4WywPcEQhENXxVY8b7MfnRdpg/r6Clo f2jqg0AEEEOB2RFIexXyT0JYSlvk9tBxe4HHmXeiSbzb7TiKSd+OyFmEUf0rSiR4q9gN zfekVmTBfpNe0mNEylWZR7NdXzHbCYw5YiLLL+zvwYjCw5iLSfRngI1sbAarEc338zn6 iP9jD7vg4H1f5CNCYctxQ6t/zdJDxBNczM3ulgMBcpzMhQENnamEd985CIQBZub5OHZY HFSg== X-Gm-Message-State: ALoCoQlyrdw3CjlveZLKnqztyM9/TWR+2VcvgVR9+tEJ79Lzf+M9TX2mxtq0Jlc/Weimk8IEf50a X-Received: by 10.28.26.147 with SMTP id a141mr50572739wma.36.1449119031016; Wed, 02 Dec 2015 21:03:51 -0800 (PST) Received: from XPS13.ibrowse.com ([93.158.46.55]) by smtp.gmail.com with ESMTPSA id gl4sm5720379wjd.17.2015.12.02.21.03.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Dec 2015 21:03:50 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 3 Dec 2015 06:02:06 +0100 Message-Id: <1449118929-19962-10-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1449118929-19962-1-git-send-email-thomas.monjalon@6wind.com> References: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> <1449118929-19962-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v2 09/12] 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: Thu, 03 Dec 2015 05:03:51 -0000 The HTML API and HTML/PDF guides may be installed if generated. Signed-off-by: Thomas Monjalon --- mk/rte.sdkinstall.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 884c915..902a933 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -62,6 +62,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) targetdir ?= $(datadir)/$(RTE_TARGET) @@ -105,6 +106,7 @@ else $(Q)$(MAKE) O=$(BUILD_DIR) install-runtime $(Q)$(MAKE) O=$(BUILD_DIR) install-kmod $(Q)$(MAKE) O=$(BUILD_DIR) install-sdk + $(Q)$(MAKE) O=$(BUILD_DIR) install-doc @echo Installation in $(DESTDIR)$(prefix)/ complete endif @@ -140,3 +142,15 @@ install-sdk: $(Q)cp -a $O/.config $(DESTDIR)$(targetdir) $(Q)$(call rte_symlink, $(DESTDIR)$(includedir), $(DESTDIR)$(targetdir)/include) $(Q)$(call rte_symlink, $(DESTDIR)$(libdir), $(DESTDIR)$(targetdir)/lib) + +install-doc: +ifneq ($(wildcard $O/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 +endif +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