From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [memnic PATCH 13/16] pmd: rename doc when installing Date: Tue, 4 Feb 2014 16:54:28 +0100 Message-ID: <1391529271-24606-14-git-send-email-thomas.monjalon@6wind.com> References: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1391529271-24606-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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