Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Simon McVittie Newsgroups: linux.debian.maint.python Subject: Re: providing sphinx3-* binaries Date: Thu, 28 Sep 2017 09:40:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Sep 28 07:36:01 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: NeoMutt/20170609 (1.8.3) X-Mailing-List: archive/latest/15250 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20170928073445.kwruu72i7vyanfjp@perpetual.pseudorandom.co.uk Approved: robomod@news.nic.it Lines: 43 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 28 Sep 2017 08:34:45 +0100 X-Original-Message-ID: <20170928073445.kwruu72i7vyanfjp@perpetual.pseudorandom.co.uk> X-Original-References: <877ewlqeku.fsf@curie.anarc.at> <20170927220327.45zxzo5yj5sdj7nv@mitya57.me> Xref: csiph.com linux.debian.maint.python:9868 On Thu, 28 Sep 2017 at 01:03:27 +0300, Dmitry Shachnev wrote: > On Tue, Sep 26, 2017 at 06:29:05PM -0400, Antoine Beaupré wrote: > > 1. there should be a more easy way to override SPHINXBUILD in > > quickstart-generated Makefiles. IMHO, that means SPHINXBUILD?= > > instead of SPHINXBUILD= > > Good suggestion, I have submitted a pull request upstream: > https://github.com/sphinx-doc/sphinx/pull/4092 I'm not sure this is necessary. If a Makefile has SPHINXBUILD = sphinx-build # or := or ::= some-target: $(SPHINXBUILD) some-arguments then you can override it on the command-line: make SPHINXBUILD="python3 -m sphinx" without needing the ?= syntax. The ?= syntax is only necessary if you want to pick up a value from the environment: export SPHINXBUILD="python3 -m sphinx"; make or if your Makefile has complicated logic that may or may not have set it already: ifeq(...) SPHINXBUILD = $(PYTHON) -m sphinx endif SPHINXBUILD ?= sphinx-build The Makefiles generated by GNU Automake, which are very verbose but generally also very good about doing the right thing in the face of strange make(1) quirks, use plain "=". (I've said the same on the upstream PR.) Regards, smcv