[dpdk-dev] [memnic PATCH 13/16] pmd: rename doc when installing

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Feb 4 16:54:28 CET 2014


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 <thomas.monjalon at 6wind.com>
---
 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



More information about the dev mailing list