ros/catkin — pull request #400 by wjwwood (2013-03-27 22:16:14+00:00)
Title: catkin_make* should allow for `MAKEFLAGS`

Currently `caktin_make*` programs always give job arguments to `make`, even if none are passed to them directly, e.g. `catkin_make` -> `make -j8 -l8` and `catkin_make -j1` -> `make -j1 -l1`.

This prevents the Make environment variable `MAKEFLAGS` from working with `catkin_make*`. I propose a new logic for handling `-j`, `--jobs`, `-l`, `--load-average` arguments:

![catkin_make_jobs](https://f.cloud.github.com/assets/100427/310965/916710c8-972b-11e2-837f-d2be78d52963.png)

This will allow users to override the make job options with direct arguments to `catkin_make*`, `MAKEFLAGS`, or `ROS_PARALLEL_JOBS`.

*EDIT:* Removed references to `CATKIN_PARALLEL_JOBS` because it is overshadowed by `MAKEFLAGS` and direct arguments, and I did not want it to have the same weird specification as `ROS_PARALLEL_JOBS` where it has flags for make not just a number.