blob: cccd76aac15cb647989e06c6c06bb9b4a029a4b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
install:: install-man
install-man:
for man in $(MANS); do \
sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
mdir=$(mandir)/man$$sect; \
$(top_srcdir)/mkinstalldirs $$mdir; \
echo installing $$man as $$mdir/$$inst; \
$(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
cdir=$(mandir)/cat$$sect; \
if test -d $$cdir; then \
echo formatting $$man as $$cdir/$$inst; \
$(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \
fi; \
done
uninstall:: uninstall-man
uninstall-man:
for man in $(MANS); do \
sect=`echo $$man|sed 's%.*\(\.[0-9][a-z]*\)$$%\1%'`; \
inst=`basename $$man $sect|sed '$(transform)'`.$$sect; \
mdir=$(mandir)/man$$sect; \
cdir=$(mandir)/cat$$sect; \
rm -f $$mdir/$$inst $$cdir/$$inst; \
done
|