openafs/doc/man-pages/Makefile.in
Russ Allbery 41d321e900 Don't cd around invocations of install-man
install-man is a config.status-generated script, so Autoconf will
substitute in the path to our install-sh script, but Autoconf prefers
relative paths that are only valid in the directory in which
install-man is generated.  We therefore must avoid changing directories
before calling install-man.

Instead of cd, use relative paths including the directory and adjust
the installation path accordingly.

Change-Id: I8666257b9d74fa80cf7f136bd0ee6ff895897066
Reviewed-on: http://gerrit.openafs.org/2460
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-07-21 11:29:30 -07:00

50 lines
1.3 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; for M in man1/*.1 man5/*.5 man8/*.8 ; do \
./install-man $$M $(DEST)/man/$$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
set -e; if [ -n "@ENABLE_FUSE_CLIENT@" ] ; then \
test -h $(DEST)/man/man8/afsd.fuse.8 \
|| ln -s afsd.8 $(DEST)/man/man8/afsd.fuse.8; \
fi
install: $(MAN1) $(MAN8)
chmod +x install-man
mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 \
$(DESTDIR)$(mandir)/man8
set -e; for M in man1/*.1 man5/*.5 man8/*.8 ; do \
./install-man $$M $(DESTDIR)$(mandir)/$$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
set -e; if [ -n "@ENABLE_FUSE_CLIENT@" ] ; then \
test -h $(DESTDIR)$(mandir)/man8/afsd.fuse.8 \
|| ln -s afsd.8 $(DESTDIR)$(mandir)/man8/afsd.fuse.8; \
fi