Michael H.

home
programs
hacks



Firefox 2
Linux inside
A disorganized mess of hacks that dont deserve their own page:)

Flock-based make

Add this to your Makefiles and watch the magic...
../% */%:
    +@touch -building
    +@flock -building $(MAKE) -C $(dir ) $(notdir )
    +@$(RM) -building
As a result, this dependency:
  bla: foo/bla
causes make to run this.
  touch foo/bla-building
  flock foo/bla-building make -C foo foo
  rm -f foo/bla-building

But all the user sees is this:
  make[1]: Entering directory: `'foo`'
  make[1]: Leaving directory: `'foo`'

Yes, one reusable piece of code.
This eliminates the need for complicated order-based builds.
Hosted by www.Geocities.ws

1