Skip to content

Commit

Permalink
build: added targets for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
safl committed Dec 5, 2018
1 parent b3c4802 commit f07f286
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DOC_BUILD_DIR=build
PROJECT_NAME=cijoe
PROJECT_VERSION_MAJOR=$(shell grep "VERSION_MAJOR = ." modules/cij/__init__.py | cut -d " " -f 3)
PROJECT_VERSION_MINOR=$(shell grep "VERSION_MINOR = ." modules/cij/__init__.py | cut -d " " -f 3)
Expand Down Expand Up @@ -41,3 +42,14 @@ release-upload:
.PHONY: release
release: release-build release-upload
@echo -n "# rel: "; date

.PHONY: docs-view
docs-view:
xdg-open $(DOC_BUILD_DIR)/docs/sphinx/html/index.html

# Produce the sphinx stuff
.PHONY: docs
docs:
@mkdir -p $(DOC_BUILD_DIR)/docs/sphinx/html
@mkdir -p $(DOC_BUILD_DIR)/docs/sphinx/pdf
sphinx-build -b html -E docs $(DOC_BUILD_DIR)/docs/sphinx/html

0 comments on commit f07f286

Please sign in to comment.