Makefile and variables from shell
I want to set the SPHINXBUILD variable from a shell script before building the doc, something like:
export SPHINXBUILD=/path/to/sphinx-build make html
But the Makefile do not use the value.
Do I miss something ?
I've checked the make manual and the variable declaration should be replace from:
SPHINXBUILD = sphinx-build
SPHINXBUILD ?= sphinx-build
It's the conditional variable assignment operator: the value is only set if the variable is undefined. I've updated the generated Makefile and it's works.
I'm using GNU Make 3.81 on debian etch.