openafs/doc/man-pages/Makefile.in
Anders Kaseorg eee532ac13 doc/man-pages/Makefile.in: mkdir man[158] in case we did regen.sh -q
Fixes this error:

$ git clean -xdf
$ ./regen.sh -q
$ ./configure
$ make
[…]
make[3]: Entering directory '/…/openafs/doc/man-pages'
rm -f man*/*.noinstall
if [ "no" = "no" ] ; then \
	for M in man1/klog.1 man1/knfs.1 […] man8/kpwvalid.8 man1/klog.krb.1; do \
		touch $M.noinstall; \
	done; \
fi
touch: cannot touch 'man1/klog.1.noinstall': No such file or directory
touch: cannot touch 'man1/knfs.1.noinstall': No such file or directory
[…]
touch: cannot touch 'man8/kpwvalid.8.noinstall': No such file or directory
touch: cannot touch 'man1/klog.krb.1.noinstall': No such file or directory
Makefile:34: recipe for target 'prep-noinstall' failed
make[3]: *** [prep-noinstall] Error 1
make[3]: Leaving directory '/…/openafs/doc/man-pages'

Change-Id: I95098fb2b27f1d87fc9769497b225e9f91f72266
Reviewed-on: https://gerrit.openafs.org/12492
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
2016-12-21 00:21:27 -05:00

93 lines
3.2 KiB
Makefile

# Makefile for AFS man pages
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
all: prep-noinstall
maintclean:
rm -rf html man1 man3 man5 man8
html:
perl generate-html
LINKEDPAGES = klog pagsh tokens
FSSYNCDEBUG_PAGES = attach callback detach error header leaveoff list mode \
move offline online query stats vgcadd vgcdel vgcquery \
vgcscan vgcscanall vnode volop
KAUTH_MAN = man1/klog.1 man1/knfs.1 man1/kpasswd.1 man5/kaserver.DB0.5 \
man5/kaserverauxdb.5 man8/ka-forwarder.8 man8/kadb_check.8 man8/kas.8 \
man8/kas_apropos.8 man8/kas_create.8 man8/kas_delete.8 \
man8/kas_examine.8 man8/kas_forgetticket.8 man8/kas_help.8 \
man8/kas_interactive.8 man8/kas_list.8 man8/kas_listtickets.8 \
man8/kas_noauthentication.8 man8/kas_quit.8 man8/kas_setfields.8 \
man8/kas_setpassword.8 man8/kas_statistics.8 man8/kas_stringtokey.8 \
man8/kas_unlock.8 man8/kaserver.8 man8/kdb.8 man8/kpwvalid.8 \
man1/klog.krb.1
INSTALL_KAUTH = @INSTALL_KAUTH@
# This really depends on the options to configure, but configure will
# regenerate the Makefile so this is a reasonable proxy.
prep-noinstall: Makefile
rm -f man*/*.noinstall
if [ "$(INSTALL_KAUTH)" = "no" ] ; then \
mkdir -p man1 man5 man8; \
for M in $(KAUTH_MAN); do \
touch $$M.noinstall; \
done; \
fi
dest: prep-noinstall
chmod +x install-man
mkdir -p $(DEST)/man/man1 $(DEST)/man/man3 \
$(DEST)/man/man5 $(DEST)/man/man8
set -e; for M in man1/*.1 man3/*.3 man5/*.5 man8/*.8 ; do \
if ! [ -e $$M.noinstall ] ; then \
./install-man $$M $(DEST)/man/$$M ; \
fi ; \
done
set -e; for M in ${LINKEDPAGES}; do \
if ! [ -e man1/$$M.1.noinstall ] ; then \
test -h $(DEST)/man/man1/$$M.krb.1 \
|| ln -s $$M.1 $(DEST)/man/man1/$$M.krb.1 ; \
fi ; \
done
test -h $(DEST)/man/man8/dafssync-debug.8 \
|| ln -s fssync-debug.8 $(DEST)/man/man8/dafssync-debug.8
set -e; for M in ${FSSYNCDEBUG_PAGES} ; do \
test -h $(DEST)/man/man8/dafssync-debug_$$M.8 \
|| ln -s fssync-debug_$$M.8 $(DEST)/man/man8/dafssync-debug_$$M.8 ; \
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: prep-noinstall $(MAN1) $(MAN8)
chmod +x install-man
mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man3 \
$(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8
set -e; for M in man1/*.1 man3/*.3 man5/*.5 man8/*.8 ; do \
if ! [ -e $$M.noinstall ] ; then \
./install-man $$M $(DESTDIR)$(mandir)/$$M ; \
fi; \
done
set -e; for M in ${LINKEDPAGES}; do \
if ! [ -e man1/$$M.1.noinstall ] ; then \
test -h $(DESTDIR)$(mandir)/man1/$$M.krb.1 \
|| ln -s $$M.1 $(DESTDIR)$(mandir)/man1/$$M.krb.1 ; \
fi ; \
done
test -h $(DESTDIR)/$(mandir)/man8/dafssync-debug.8 \
|| ln -s fssync-debug.8 $(DESTDIR)/$(mandir)/man8/dafssync-debug.8
set -e; for M in ${FSSYNCDEBUG_PAGES} ; do \
test -h $(DESTDIR)/$(mandir)/man8/dafssync-debug_$$M.8 \
|| ln -s fssync-debug_$$M.8 $(DESTDIR)/$(mandir)/man8/dafssync-debug_$$M.8 ; \
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