From d45221ee39ea474bda4df54865d67b2d7eac229e Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sun, 18 Sep 2022 20:23:27 +0300 Subject: move to flit & makefile Signed-off-by: Arthur Zamarin --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2ff7e76 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +PYTHON ?= python + +SPHINX_BUILD ?= sphinx-build +SPHINX_BUILD_SOURCE_DIR ?= doc +SPHINX_BUILD_BUILD_DIR ?= build/sphinx + +.PHONY: man +man: + $(SPHINX_BUILD) -a -b man $(SPHINX_BUILD_SOURCE_DIR) $(SPHINX_BUILD_BUILD_DIR)/man + +.PHONY: html +html: + $(SPHINX_BUILD) -a -b html $(SPHINX_BUILD_SOURCE_DIR) $(SPHINX_BUILD_BUILD_DIR)/html + +.PHONY: sdist +sdist: + $(PYTHON) -m build --sdist + +.PHONY: wheel +wheel: + $(PYTHON) -m build --wheel + +.PHONY: clean +clean: + $(RM) -r build/sphinx doc/api -- cgit v1.2.3-65-gdbad