Issues

Issue #686 on hold

Makefile should not overwrite variables

Anonymous created an issue

When you start a new project, the generated makefile contains something like this:

{{{

You can set these variables from the command line.

SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build }}}

The variables can be set on the command line, which overrides the values here. However, if the variables are set in another make file, which includes this file, then the values from the outer makefile are overridden, which is not desirable.

I suggest that the generated makefile be changed to {{{

You can set these variables from the command line.

SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build PAPER ?= BUILDDIR ?= build }}} Note the use of ?= assignment.

Thanks

Comments (3)

  1. Log in to comment