Răsfoiți Sursa

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

Andrei Pelinescu-Onciul 23 ani în urmă
părinte
comite
addb384d1c
2 a modificat fișierele cu 11 adăugiri și 1 ștergeri
  1. 10 0
      Makefile
  2. 1 1
      freebsd/Makefile

+ 10 - 0
Makefile

@@ -26,6 +26,8 @@ modules=$(filter-out $(addprefix modules/, \
 			$(wildcard modules/*))
 modules_names=$(shell echo $(modules)| \
 				sed -e 's/modules\/\([^/ ]*\)\/*/\1.so/g' )
+modules_basenames=$(shell echo $(modules)| \
+				sed -e 's/modules\/\([^/ ]*\)\/*/\1/g' )
 #modules_names=$(patsubst modules/%, %.so, $(modules))
 modules_full_path=$(join  $(modules), $(addprefix /, $(modules_names)))
 
@@ -183,6 +185,14 @@ install-doc: $(doc-prefix)/$(doc-dir)
 	$(INSTALL-DOC) INSTALL $(doc-prefix)/$(doc-dir)
 	$(INSTALL-DOC) README-MODULES $(doc-prefix)/$(doc-dir)
 	$(INSTALL-DOC) AUTHORS $(doc-prefix)/$(doc-dir)
+	-@for r in $(modules_basenames) "" ; do \
+		if [ -n "$$r" ]; then \
+			if [ -f modules/"$$r"/README ]; then \
+				$(INSTALL-DOC)  modules/"$$r"/README  \
+									$(doc-prefix)/$(doc-dir)/README."$$r" ; \
+			fi ; \
+		fi ; \
+	done 
 
 install-man: $(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5
 	$(INSTALL-MAN)  ser.8 $(man-prefix)/$(man-dir)/man8

+ 1 - 1
freebsd/Makefile

@@ -9,7 +9,7 @@
 
 
 PORTNAME= ser
-PORTVERSION= 0.8.9
+PORTVERSION= 0.8.10
 CATEGORIES= net
 MASTER_SITES= ftp://ftp.berlios.de/pub/ser/latest/src/