Make flags in prerequisites setup script
Hello.
Currently, prerequisites.sh uses 'make -j' to build cppcheck and vera++. This can be too resource consuming.
To give control about the make options, we can pass "-j" flag in make command line only if it is passed to make instance, calling the script (MAKEFLAGS environment variable, created by make, can be used for this).
By the way. Why do we have to build vera++ by ourselves? Is there a problem using vera++ distribution package?
Actually, may be manual build of vera++ is unnecessary.
There is also distribution package for cppcheck in Ubuntu. The issue with it are changes between versions. Some false positives can appear in new versions, making precommit pass in one environment, and not - in another. Because of this, we've fixed cppcheck version by building necessary version manually, with other prerequisites.
Maybe, there are no similar cross-version issues with vera++. In the case, we could use distribution package.
I think the manual build of vera++ is totally unnecessary. This should be optional or at least should be checked if it is already installed or not.
In Ubuntu (from trusty to vivi) the vera++ package has the 1.2.1 version and the same version is in the prerequisites script.