aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index bcbc420..6a4a460 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PACKAGE=paper2remarkable
DOC_DIR='./docs/'
VENV_DIR=/tmp/p2r_venv/
-.PHONY: help dist venv
+.PHONY: help dist venv docs
.DEFAULT_GOAL := help
@@ -35,22 +35,15 @@ clean: ## Clean build dist and egg directories left after install
rm -rf ./$(PACKAGE).egg-info
rm -rf $(VENV_DIR)
rm -f MANIFEST
+ rm -f ./p2r.1
find . -type f -iname '*.pyc' -delete
find . -type d -name '__pycache__' -empty -delete
-dist: ## Make Python source distribution
+dist: docs ## Make Python source distribution
python setup.py sdist bdist_wheel
-docs: doc
-doc: install ## Build documentation with Sphinx
- 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 'Paper2Remarkable API Documentation' -o source ../$(PACKAGE) && \
- touch source/AUTOGENERATED
- $(MAKE) -C $(DOC_DIR) html
+docs:
+ $(MAKE) -C $(DOC_DIR) clean && $(MAKE) -C $(DOC_DIR) man
venv: $(VENV_DIR)/bin/activate