[haiku-3rdparty-dev] Re: Makefile-Engine with multiple, dependant targets
- From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
- To: haiku-3rdparty-dev@xxxxxxxxxxxxx
- Date: Wed, 5 Oct 2016 20:45:04 -0700
On Wed, Oct 05, 2016 at 06:48:02PM -0700, Pete Goodeve wrote:
On Tue, Oct 04, 2016 at 11:05:23AM +0200, Stefano Ceccherini wrote:
Hi.
Is it possible to use the makefile-engine to create more complex build
setup ?
Just thoiught of another -- simpler? -- way.
As the first target in the makefile is the "root", you could define
a dummy target *before* the engine, that has a dependency of
each sub-project you want to process. The last dependency must
be "default", as that's the engine's target.
For (a stupid) example:
...
mytargets : MyHeader.h anotherthing default
## include the makefile-engine
include /boot/develop/etc/makefile-engine
MyHeader.h : MyHeader.src
cp MyHeader.src MyHeader.h
anotherthing :
echo "doing anotherthing"
This will update MyHeader.h, then anotherthing, and finally
invoke the engine.
-- Pete --
Other related posts: