News: Stay up to date

The Étoilé community is an active group of developers, designers, testers and users. New work is being done every day. Visit often to find out what we've been up to.

News

Really Simplifying Internal Dependency Handling

Posted on 1 December 2006 by Quentin Mathé

This is a followup to my previous post: Simplifying Internal Dependency Handling.

Why 'Really' in the title? When a module relies on another one, now you don't even need to declare this dependency. In my first attempt discussed previously, DEPENDENCIES variable was used to do so. Any support related to this variable has been removed. You also don't need anymore to declare module used as dependency in etoile.make.

To make things easier to understand, I'm going to take Grr and RSSKit as an example yet another time. The only thing you got to know is Grr depends on RSSKit framework.

What you have to add now:

  • Grr GNUmakefile
  • -include ../../../etoile.make
  • RSSKit GNUmakefile
  • -include ../../etoile.make
  • etoile.make
  • nothing

Now behind the scene, any modules that includes etoile.make in its GNUmakefile gets exported in a shared Build directory at the root of the repository. In the first attempt, the dependency was imported directly in the module which needs it.

What you had to add before:

  • Grr GNUmakefile
  • DEPENDENCIES = RSSKit -include ../../../etoile.make
  • RSSKit GNUmakefile
  • nothing
  • etoile.make
  • RSSKit = Frameworks/RSSKit