aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-18 20:23:27 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-18 20:32:20 +0300
commitd45221ee39ea474bda4df54865d67b2d7eac229e (patch)
tree1985fd6fb84b08b406cc0f3fec96833dc5a3e044 /Makefile
parentversion: fix env for traversal (diff)
downloadsnakeoil-d45221ee39ea474bda4df54865d67b2d7eac229e.tar.gz
snakeoil-d45221ee39ea474bda4df54865d67b2d7eac229e.tar.bz2
snakeoil-d45221ee39ea474bda4df54865d67b2d7eac229e.zip
move to flit & makefile
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..2ff7e761
--- /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