Disallow installing "man pages" from release subdir

* Makefile.in (install-man): Exclude release subdir from search paths.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2015-06-18 22:04:58 +02:00
parent e9549aef38
commit 0d3304af38
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2015-06-18 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (install-man): Exclude release subdir from search paths.
2015-06-17 Corinna Vinschen <corinna@vinschen.de>
* net.cc (sethostname): New function.

View File

@ -505,16 +505,16 @@ install-headers:
install-man:
@$(MKDIRP) $(DESTDIR)$(mandir)/man2 $(DESTDIR)$(mandir)/man3 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man7
cd $(srcdir); \
for i in `find . -type f -name '*.2'`; do \
for i in `find . -type f ! -path './release/*' -name '*.2'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man2/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.3'`; do \
for i in `find . -type f ! -path './release/*' -name '*.3'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man3/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.5'`; do \
for i in `find . -type f ! -path './release/*' -name '*.5'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man5/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.7'`; do \
for i in `find . -type f ! -path './release/*' -name '*.7'`; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man7/`basename $$i` ; \
done