Issue #1368 new

Makefile options not overridable from command line

created an issue

doc/Makefile states:

# You can set these variables from the command line.

However to make the variables overridable from the command line, the assignments must be changed:

--- Makefile.orig       Fri Jan 31 18:02:10 2014
+++ Makefile    Fri Jan 31 18:02:33 2014
@@ -2,11 +2,11 @@

 # You can set these variables from the command line.
-SPHINXBUILD  = python ../
-SPHINXPROJ   = sphinx
-BUILDDIR     = _build
+SPHINXBUILD ?= python ../
+SPHINXPROJ  ?= sphinx
+BUILDDIR    ?= _build

 # Has to be explicit, otherwise we don't get "make" without targets right.

This is also an issue in every project that adopts this Makefile.

Comments (2)

  1. minusf reporter

    i just realised this should be fixed in sphinx.quickstart.MAKEFILE

    while we are here, is the new doc/Makefile an indication of what will happen to sphinx.quickstart.MAKEFILE? I am asking because the new Makefile works only with GNU make (BSD make does not recognise % as a catchall target :( so it would be nice to keep it like it is...

  2. Log in to comment