aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2a656d4..7dcf23c 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PACKAGE=paper2remarkable
DOC_DIR='./docs/'
VENV_DIR=/tmp/p2r_venv/
-.PHONY: help cover dist
+.PHONY: help cover dist venv
.DEFAULT_GOAL := help
@@ -39,15 +39,15 @@ clean: ## Clean build dist and egg directories left after install
find . -type d -name '__pycache__' -empty -delete
dist: ## Make Python source distribution
- python setup.py sdist
- python setup.py bdist_wheel --universal
+ python setup.py sdist bdist_wheel
docs: doc
doc: install ## Build documentation with Sphinx
- m2r README.md && mv README.rst $(DOC_DIR)
- m2r CHANGELOG.md && mv CHANGELOG.rst $(DOC_DIR)
+ source $(VENV_DIR)/bin/activate && m2r README.md && mv README.rst $(DOC_DIR)
+ source $(VENV_DIR)/bin/activate && m2r CHANGELOG.md && mv CHANGELOG.rst $(DOC_DIR)
cd $(DOC_DIR) && \
rm source/* && \
+ source $(VENV_DIR)/bin/activate && \
sphinx-apidoc -H 'CleverCSV API Documentation' -o source ../$(PACKAGE) && \
touch source/AUTOGENERATED
$(MAKE) -C $(DOC_DIR) html