I'm hoping someone here can at least point me in the right direction to solve this show-stopper issue:
Background:
I have a build system that is a legacy holdover from the forgotten mists of time (nobody at the company has any idea how it all works). I have been given the task to modify things so that the system will build RPM installation packages instead of the java-wizard installation packages it currently builds.
Instead of going through the hundred or so nested directories and makefiles I decided to let the old packages build normally and simply add a new rule to the top level Makefile to build RPM's.
The rule simply calls a bash script that enumerates the base directories where the RPM build tree lives and then decends into each one and issues the rpmbuild command with the proper parameters (rpmbuild does a lot of stuff but the main thing is that it builds the package from source. ie it calls make during its execution).
It works great when I am in the top level directory and say "make". The RPM builds and everything is fine.
But
If I call make from a perl script I get:
GNUMake: ***multiple target patterns : Stop
and the build exits.
I've googled the error extensively but have only found some vague explanations as to what is going on.