openafs/doc/man-pages/Makefile.in
Russ Allbery 7b5bfb1c17 man-page-reorg-20051209
Generate the man pages in man1, man5, and man8 subdirectories rather than
directly in the doc/man-pages directory to reduce clutter.  Add a
.cvsignore to reduce noise.
2005-12-09 14:50:02 +00:00

35 lines
958 B
Makefile

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