[haiku-3rdparty-dev] Re: Makefile-Engine with multiple, dependant targets

  • From: Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Thu, 6 Oct 2016 12:32:51 +0200

2016-10-06 3:48 GMT+02:00 Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>:



Damn you... (:-))  Setting more puzzles I can't resist taking a crack at!!




It is possible, but it is SO easy to get lost (:-/) I did -- many times...

First, you have to put your rules *after* the makefile-engine include,
as the main target is in the engine.  If you satisfy a rule before the
engine, it just thinks it's done, and quits.  'make' itself takes care
of doing things in the right order, so the header will get built before
the main project is compiled.

You also have to make sure you put in necessary dependencies,
because those set up by the engine don't take into account added
needs.  For example, if your source includes a header that doesn't yet
exist, the mkdepend command in the engine just ignores that header.



Hope it helps.


Thank you very much! That worked perfectly!

Other related posts: