dist-docs: Make GNU make aware of sub-make.
authorBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 04:18:34 +0000 (20:18 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 17:39:26 +0000 (09:39 -0800)
commit6b3043359519e1716a3d6a57d43c153b8e1d2cf0
tree9d6e67be99c96958c0895a9605f3ccdd45643348
parent54e26ee46c90dda9c6f6ee4c2688ecba59a511e4
dist-docs: Make GNU make aware of sub-make.

When GNU make sees that a command to be executed contains the string
$(MAKE), it makes the jobserver that limits parallelism available to
the command.  Otherwise, any sub-make that executes sees that
parallelism is enabled but does not have access to the jobserver, so
it prints a warning and turns off parallel job execution.

This also makes the dist-docs process run the same "make" that is
executed at the top level, in case that's different from the default
"make" found in $PATH.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
Makefile.am
build-aux/dist-docs