From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6BCF158021 for ; Tue, 8 Nov 2022 18:38:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1695E09F5; Tue, 8 Nov 2022 18:38:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC609E09F5 for ; Tue, 8 Nov 2022 18:38:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2703340F7F for ; Tue, 8 Nov 2022 18:38:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 892A870D for ; Tue, 8 Nov 2022 18:38:39 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1667932700.37a086523bb1aee2a75309065b145047850c5199.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: / X-VCS-Repository: proj/pkgcore/snakeoil X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 37a086523bb1aee2a75309065b145047850c5199 X-VCS-Branch: master Date: Tue, 8 Nov 2022 18:38:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38acd156-c54c-41d2-ae0a-3b014b8de98b X-Archives-Hash: 052fc539f9558704f38624c9c6693faf commit: 37a086523bb1aee2a75309065b145047850c5199 Author: Arthur Zamarin gentoo org> AuthorDate: Tue Nov 8 18:38:20 2022 +0000 Commit: Arthur Zamarin gentoo 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 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