2 for man in $(MANS); do \
3 sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
4 inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
5 mdir=$(mandir)/man$$sect; \
6 $(top_srcdir)/mkinstalldirs $$mdir; \
7 echo installing $$man as $$mdir/$$inst; \
8 $(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
9 cdir=$(mandir)/cat$$sect; \
10 if test -d $$cdir; then \
11 echo formatting $$man as $$cdir/$$inst; \
12 $(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \
17 for man in $(MANS); do \
18 sect=`echo $$man|sed 's%.*\(\.[0-9][a-z]*\)$$%\1%'`; \
19 inst=`basename $$man $sect|sed '$(transform)'`.$$sect; \
20 mdir=$(mandir)/man$$sect; \
21 cdir=$(mandir)/cat$$sect; \
22 rm -f $$mdir/$$inst $$cdir/$$inst; \