From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id F252C8E92 for ; Thu, 3 Dec 2015 14:47:08 +0100 (CET) Received: by wmvv187 with SMTP id v187so27946162wmv.1 for ; Thu, 03 Dec 2015 05:47:08 -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=WseYLQe9sqIYT309XiVa3aSHw65AQ9nOv7C4qTn0Qus=; b=aEhr/WiEO45jeEJoGB0fTFZzocw175xhMb73GtVlgmrvd6vLgvDEV/k46hNtpVOlnH +v5DCloIr/sSL5vKjeXwEeDbnq9/1Xjd+tLR77bLr3Koi5bTR/QxmR0zkPzY2zg37w5r ZxA1BYbTEIdWvw8MXcDgzZFhiKx+jHb5clFR8BzBL/MkRv57+aAaf4QOIDymDnxrqYPb qzo9wPrJHJpRlKvFLAvIWbbU2BXvNENfZGf41U4khDFd/cIr32ZSo7+Qir0Xsfy1ZQlM QMQ4Bo4kxKWJA/egPcv1o9Ozo5ucMn3Mu0flAKORpRg7ba1Rjnj/PK4e7kzECu/RQS9D fBFQ== 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=WseYLQe9sqIYT309XiVa3aSHw65AQ9nOv7C4qTn0Qus=; b=g5KlQ4IZENP/xfjTl0BZF7rkyYosACgtPRDvl6rbBSij2TiC22Lgw2gYIZUHr2+i26 xWyqiqgitD2Pj+QSC0Y9CNeG9oJuvgzOxYngz43QZlivu9qPq5j2ivyerVHCi8V9ky0U JH2V84gQop3IbkBWAib6eBb7/FKn26QfTT8Ngakbx6+EH8/MEyAmlpRMKTqlS5o4H4cU j+eRAMDvTjS/D1aRLo36rTEm0s+jUterzW2fkrJGt1uP18IrxVjHLQWxMVsRF16RczOT 4844Xo5LZT1m6beyT7mqdQHmj67hfY5ibsgXvvdRvViYGokK1qcXkhkO9KI9xvbwQ/aj gqwA== X-Gm-Message-State: ALoCoQmhc3WVWwWNDup5T2oMITI0yzxlm31mIv4k/xwynmlPLOtBB/OKy5TTtbjX2Nhij3Q8MlGl X-Received: by 10.28.86.196 with SMTP id k187mr49724089wmb.61.1449150428852; Thu, 03 Dec 2015 05:47:08 -0800 (PST) Received: from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id k133sm8063912wmg.18.2015.12.03.05.47.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Dec 2015 05:47:08 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 3 Dec 2015 14:45:36 +0100 Message-Id: <1449150340-21984-10-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1449150340-21984-1-git-send-email-thomas.monjalon@6wind.com> References: <1449118929-19962-1-git-send-email-thomas.monjalon@6wind.com> <1449150340-21984-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v3 09/13] 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 13:47:09 -0000 The HTML API and HTML/PDF guides may be installed if generated. Signed-off-by: Thomas Monjalon Acked-by: Panu Matilainen --- mk/rte.sdkinstall.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 0667b70..ce077a4 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -64,6 +64,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) @@ -107,6 +108,7 @@ else $(Q)$(MAKE) O=$(RTE_OUTPUT) T= install-runtime $(Q)$(MAKE) O=$(RTE_OUTPUT) T= install-kmod $(Q)$(MAKE) O=$(RTE_OUTPUT) T= install-sdk + $(Q)$(MAKE) O=$(RTE_OUTPUT) T= install-doc @echo Installation in $(DESTDIR)$(prefix)/ complete endif @@ -142,3 +144,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