Skip to content

Commit

Permalink
Script(update): build and install man doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Apr 1, 2020
1 parent e787cc1 commit deaf723
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ SOURCEDIR = .
BUILDDIR = $(BUILD_DIR)/doc

default:
make html
make html man

view:
xdg-open "$(BUILDDIR)/html/index.html"

install: install-rst install-html
install: install-rst install-html install-man

install-rst:
for rst in *.rst; do \
Expand All @@ -31,6 +31,13 @@ install-html:
done; \
cp -r _static "$(DESTDIR)$(PACKAGE_DATA_DIR)/doc/$(PACKAGE)/html";

install-man:
cd $(BUILDDIR)/man; \
for man in *.1; do \
$(INSTALL) -Dm644 $$man \
"$(DESTDIR)$(PACKAGE_DATA_DIR)/man/man1/$$man"; \
done; \

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Expand Down

0 comments on commit deaf723

Please sign in to comment.