git build should fail if emacs is not installed
Currently, if emacs is not installed, the EMACS variable is empty and the build fails with
make[5]: Leaving directory '/home/dave/spot/doc'
batch -q -l org/init.el
batch accepts no parameters
make[4]: [Makefile:1631: org] Error 1 (ignored)
if test -s ./org/org.errors; then \
cat ./org/org.errors; exit 1; \
else :; fi
make[4]: Leaving directory '/home/dave/spot/doc'
The command being run was: $(EMACS) --batch -q -l org/init.el
, but make
simply interpret it as batch -q -l org/init.el
with the -
prefix requesting to ignore errors.
I suggest we default EMACS to tools/missing emacs
to get a proper error in this case.