Use MAKE variable to pass correct info to child.
Spawning a make subprocess should be done through use of the $(MAKE) variable so that the child process receives all the information it needs. closes #2395. I didn't check the whole list of make targets, but more could be affected.
Point of discussion: This syntax doesn't seem to sit well with ninja, which complains:
ninja: error: build.ninja:126: bad $-escape (literal $ must be written as $$)
I have tried any combination of unqouted, quoted, bracket quoted, single $, double $, \\$, and VERBATIM you could think of, but can't find any syntax that both cmake and ninja will run:
- If
cmakeruns it,ninjacomplains about escaping - If
ninjaruns it, variouscmakeconfiguration failures occur and theinstalltarget no longer exists.
Is it possible for the install-nodoc target to set the NEST_INSTALL_NODOC env var in another way, without having to subprocess a make process?
@jougs and I had a long discussion some time ago, that this should probably not be a cmake target at all. The concept of "nodoc" should be a flag that can be set. This would reduce the complexity of the issue a lot. We wrote this down in an issue, but never got around to working on this, also I seem to be unable to find the issue that I have in mind :-/ … does anyone reading this remember the discussion? @gtrensch maybe?
We discussed this in issue #1905.
Well it breaks make install-nodoc for ninja users 😟