Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
doc: add install_man target to make installing man pages easier
Browse files Browse the repository at this point in the history
Mostly because installing man pages with distutils/setuptools is still
really annoying.
  • Loading branch information
radhermit committed Aug 2, 2015
1 parent 57c7fc1 commit 7ae8651
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
PREFIX = /usr/local
MAN_PREFIX = $(PREFIX)/share/man

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
Expand Down Expand Up @@ -135,6 +137,14 @@ man:
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."

install_man:
@for file in $(BUILDDIR)/man/*; do \
echo $$file; \
echo man$$(suffix $$file); \
install -d -m 755 "$(DESTDIR)$(MAN_PREFIX)/man$(suffix $${file})"; \
install -m 644 "$${file}" "$(DESTDIR)$(MAN_PREFIX)/man$(suffix $${file})"; \
done

texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
Expand Down

0 comments on commit 7ae8651

Please sign in to comment.