I want my top-level Rakefile projects to build things using rakefiles deeper in the tree; that is, the upper level rakefile says how to build a project (large image), and the lower level - create a specific module (local image).
Of course, there is a common set of settings for the smallest details that each time it can be divided between tasks: this mainly concerns the storage of descriptions of what needs to be built, as close to the sources that are created. For example. /Source/Module/code.foo and cie should be built using the instructions in / Source / Module / Rakefile; and / Rakefile understands dependencies between modules.
I don't care if it uses multiple rake processes (ala recursive make) or just creates separate build environments. In any case, it should be low-key enough to handle the queue: so that independent modules can be created at the same time.
The problem is, how the hell are you actually doing something similar with Rake !? I could not find anything meaningful on the Internet and in the documentation. I tried to create a new Rake :: Application object and configure it, but any methods I try to use only exceptions or "I donβt know how to build the task: errors" default "" get throw ". (Yes, all rakefiles have: default ). Obviously, you can simply rake in the subdirectory for the task: modulename, but this will distinguish the options given at the top level; for example, think about $ (MAKE) and $ (MAKEFLAGS).
Does anyone know how to do something like recursive rake correctly?
ruby build-process rake
Terryp
source share