Browse code

- changed install-doc target to install also all the modules READMEs

Andrei Pelinescu-Onciul authored on 12/11/2002 12:31:25
Showing 2 changed files
... ...
@@ -26,6 +26,8 @@ modules=$(filter-out $(addprefix modules/, \
26 26
 			$(wildcard modules/*))
27 27
 modules_names=$(shell echo $(modules)| \
28 28
 				sed -e 's/modules\/\([^/ ]*\)\/*/\1.so/g' )
29
+modules_basenames=$(shell echo $(modules)| \
30
+				sed -e 's/modules\/\([^/ ]*\)\/*/\1/g' )
29 31
 #modules_names=$(patsubst modules/%, %.so, $(modules))
30 32
 modules_full_path=$(join  $(modules), $(addprefix /, $(modules_names)))
31 33
 
... ...
@@ -183,6 +185,14 @@ install-doc: $(doc-prefix)/$(doc-dir)
183 185
 	$(INSTALL-DOC) INSTALL $(doc-prefix)/$(doc-dir)
184 186
 	$(INSTALL-DOC) README-MODULES $(doc-prefix)/$(doc-dir)
185 187
 	$(INSTALL-DOC) AUTHORS $(doc-prefix)/$(doc-dir)
188
+	-@for r in $(modules_basenames) "" ; do \
189
+		if [ -n "$$r" ]; then \
190
+			if [ -f modules/"$$r"/README ]; then \
191
+				$(INSTALL-DOC)  modules/"$$r"/README  \
192
+									$(doc-prefix)/$(doc-dir)/README."$$r" ; \
193
+			fi ; \
194
+		fi ; \
195
+	done 
186 196
 
187 197
 install-man: $(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5
188 198
 	$(INSTALL-MAN)  ser.8 $(man-prefix)/$(man-dir)/man8
... ...
@@ -9,7 +9,7 @@
9 9
 
10 10
 
11 11
 PORTNAME= ser
12
-PORTVERSION= 0.8.9
12
+PORTVERSION= 0.8.10
13 13
 CATEGORIES= net
14 14
 MASTER_SITES= ftp://ftp.berlios.de/pub/ser/latest/src/
15 15