comparison doc/Makefile @ 8822:1027da7d2fb9

doc: fix regexp for determining the man page section Preceding a .* pattern with an other dot serves little purpose, better anchor the regexp to the start of the file name.
author Cédric Duval <cedricduval@free.fr>
date Wed, 10 Jun 2009 19:59:44 +0200
parents e0eb03bfa5af
children 309c1d762e8e
comparison
equal deleted inserted replaced
8821:c66e324d3961 8822:1027da7d2fb9
37 echo "doc/$$i" >> $@ ; \ 37 echo "doc/$$i" >> $@ ; \
38 done 38 done
39 39
40 install: man 40 install: man
41 for i in $(MAN) ; do \ 41 for i in $(MAN) ; do \
42 subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \ 42 subdir=`echo $$i | sed -n 's/^.*\.\([0-9]\)$$/man\1/p'` ; \
43 mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \ 43 mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \
44 $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \ 44 $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \
45 done 45 done
46 46
47 clean: 47 clean: