diff options
author | 2022-11-08 20:38:20 +0200 | |
---|---|---|
committer | 2022-11-08 20:38:20 +0200 | |
commit | 37a086523bb1aee2a75309065b145047850c5199 (patch) | |
tree | 7320edce0e40742091bf32b750a33967da6e4a83 | |
parent | drop py3.8 support (diff) | |
download | snakeoil-37a086523bb1aee2a75309065b145047850c5199.tar.gz snakeoil-37a086523bb1aee2a75309065b145047850c5199.tar.bz2 snakeoil-37a086523bb1aee2a75309065b145047850c5199.zip |
Makefile: cleanup and improve
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | Makefile | 24 |
1 files changed, 7 insertions, 17 deletions
@@ -1,25 +1,15 @@ 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: man html +man html: + $(SPHINX_BUILD) -a -b $@ doc build/sphinx/$@ -.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: sdist wheel +sdist wheel: + $(PYTHON) -m build --$@ .PHONY: clean clean: - $(RM) -r build/sphinx doc/api + $(RM) -r build/sphinx doc/api dist |