openafs/doc/man-pages/Makefile.in
Steven Jenkins 798ffe54af man-page-krb-varients-20090518
FIXES 124799
LICENSE IPL10

Install symlinks for the *.krb versions of klog, pagsh, and tokens to the
non-krb versions and add information about the *.krb versions to the
non-krb man pages.
2009-05-18 23:22:29 +00:00

55 lines
1.4 KiB
Makefile

# Makefile for AFS man pages
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
all:
maintclean:
rm -rf html man1 man5 man8
html:
perl generate-html
LINKEDPAGES = klog pagsh tokens
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
set -e; for M in ${LINKEDPAGES}; do \
NEWPAGE=$(DEST)/man/man1/$$M.krb.1 ; \
test -h ${NEWPAGE} || ln -s $$M.1 ${NEWPAGE} ; \
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
set -e; for M in ${LINKEDPAGES}; do \
NEWPAGE=$(DESTDIR)$(mandir)/man1/$$M.krb.1 ; \
test -h ${NEWPAGE} || ln -s $$M.1 ${NEWPAGE} ; \
done