From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 2237E69A3 for ; Tue, 4 Feb 2014 16:53:52 +0100 (CET) Received: by mail-wg0-f46.google.com with SMTP id x12so12824910wgg.25 for ; Tue, 04 Feb 2014 07:55:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=VhiKRHZIbaM/u+oy1r+NRFJu/7ar1DH/ez561BRw1Jw=; b=Y+/A0mpSxvMxImrzVEkfh1NaKxT8qTEtXNeRY0CuBic0KS6Kbbx64mynfDcHTwOEUg 0lEGsHXDRRZmZB5IWSikRSOhWO+OIST7wBcY7Tw28I+p6Lv7WtTdQEAnb4pqrCBCsjEo wpsD3LIqgfmCJZUbNzUzp9AMxHkp+6XeXp0gwSwqmBjsb3k4MVyzt7hpRHrKg+SOjS4o l5Zrc69uiuB5vBsHnBu4/vtgYXqm6Qg4mgh+GN83hZ07ddjyE+c1TExgsNb1szNru5JF 1E4YpdyAIVS39NuW+7Y82uuD8e9jUAObyj1cDIqGeD5Bc5+PPGM8OYOSaUuLBZank/NO aoZw== X-Gm-Message-State: ALoCoQlQlkRwK3bZoxOm6CQ+73Zf6d4lqXnTGZpn2HUsph0FYfv9IwjMbEt/oFt+q5GWk1skN+4/ X-Received: by 10.194.86.200 with SMTP id r8mr2483876wjz.49.1391529312962; Tue, 04 Feb 2014 07:55:12 -0800 (PST) Received: from angus.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm53639203wjq.0.2014.02.04.07.55.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 07:55:12 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 4 Feb 2014 16:54:28 +0100 Message-Id: <1391529271-24606-14-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> References: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [memnic PATCH 13/16] pmd: rename doc when installing 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: Tue, 04 Feb 2014 15:53:52 -0000 MEMNIC doc may be installed with other DPDK docs. So more descriptive naming is required. A rule is created in order to have the same rule style for lib and doc. Signed-off-by: Thomas Monjalon --- pmd/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pmd/Makefile b/pmd/Makefile index 7f96af1..1e24a15 100644 --- a/pmd/Makefile +++ b/pmd/Makefile @@ -33,6 +33,7 @@ PKG = librte_pmd_memnic_copy RTE_CONFIG = $(RTE_INCLUDE)/rte_config.h SOLIB = $(PKG).so +DOC = dpdk-memnic.rst S ?= . O ?= . @@ -46,7 +47,7 @@ prefix ?= /usr/local exec_prefix ?= $(prefix) libdir ?= $(exec_prefix)/lib datarootdir ?= $(prefix)/share -docdir ?= $(datarootdir)/doc/$(PKG) +docdir ?= $(datarootdir)/doc/dpdk all : $O/$(SOLIB) @@ -62,11 +63,13 @@ endif -I$S/../common -o $@ $< install : $(DESTDIR)$(libdir)/$(SOLIB) - install -D -m 644 $S/README.rst $(DESTDIR)$(docdir)/README.rst - $(DESTDIR)$(libdir)/$(SOLIB): $O/$(SOLIB) install -D -m 644 $< $@ +install : $(DESTDIR)$(docdir)/$(DOC) +$(DESTDIR)$(docdir)/$(DOC) : $S/README.rst + install -D -m 644 $< $@ + clean : - rm -f $O/$(SOLIB) ifneq '$(abspath $O)' '$(CURDIR)' -- 1.7.10.4