diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -39,7 +39,7 @@ MANIFEST: man html install: man for i in $(MAN) ; do \ - subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \ + subdir=`echo $$i | sed -n 's/^.*\.\([0-9]\)$$/man\1/p'` ; \ mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \ $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \ done