commit:     37a086523bb1aee2a75309065b145047850c5199
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  8 18:38:20 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  8 18:38:20 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=37a08652

Makefile: cleanup and improve

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 Makefile | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/Makefile b/Makefile
index 2ff7e761..f49201a1 100644
--- a/Makefile
+++ b/Makefile
@@ -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

Reply via email to