openafs/doc/man-pages/Makefile.in
Russ Allbery 5fde299434 man-page-installation-20051221
On installation, substitute the configured paths into the man pages,
replacing the Transarc paths.  Also fix a problem with the way that
pinstall was being used to install man pages.  (Silly me, I was assuming
it had the same behavior as install.)

This is just a quick first pass.  Longer term, it's probably better to
replace all paths in the man pages with unambiguous tokens and then
replace those tokens instead of assuming that the man pages use Transarc
paths and replacing those paths specifically.  The current method has a
few minor problems, such as not being able to distinguish between the
various paths that make up /usr/afs/bin.  Still, the results of this method
are good enough to start with.
2005-12-22 07:29:52 +00:00

37 lines
960 B
Makefile

# Makefile for AFS man pages
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
all:
maintclean:
rm -rf man1 man5 man8
dest:
chmod +x install-man
mkdir -p $(DEST)/man/man1 $(DEST)/man/man5 $(DEST)/man/man8
set -e; cd man1 && for M in *.1 ; do \
../install-man $$M $(DEST)/man/man1/$$M ; \
done
set -e; cd man5 && for M in *.5 ; do \
../install-man $$M $(DEST)/man/man5/$$M ; \
done
set -e; cd man8 && for M in *.8 ; do \
../install-man $$M $(DEST)/man/man8/$$M ; \
done
install: $(MAN1) $(MAN8)
chmod +x install-man
mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 \
$(DESTDIR)$(mandir)/man8
set -e; cd man1 && for M in *.1 ; do \
../install-man $$M $(DESTDIR)$(mandir)/man1/$$M ; \
done
set -e; cd man5 && for M in *.5 ; do \
../install-man $$M $(DESTDIR)$(mandir)/man5/$$M ; \
done
set -e; cd man8 && for M in *.8 ; do \
../install-man $$M $(DESTDIR)$(mandir)/man8/$$M ; \
done