openafs/doc/man-pages/Makefile.in
Russ Allbery 8ff1e057bc DEVEL15-doc-man-page-install-variables-20090602
LICENSE BSD

We were horribly confused about variables when creating man page symlinks.
Be less confused by using variables less.


(cherry picked from commit 3ae35e1271)
2009-06-02 18:33:42 +00:00

51 lines
1.3 KiB
Makefile

# Makefile for AFS man pages
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
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 \
test -h $(DEST)/man/man1/$$M.krb.1 \
|| ln -s $$M.1 $(DEST)/man/man1/$$M.krb.1 ; \
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 \
test -h $(DESTDIR)$(mandir)/man1/$$M.krb.1 \
|| ln -s $$M.1 $(DESTDIR)$(mandir)/man1/$$M.krb.1 ; \
done