From 6a72ae7da8062abe8cfa94bf858f4752ccb744c8 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 11 Nov 2019 13:24:08 +0000 Subject: Clean up Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3