Since I started working on L20n bindings for XUL I always felt frustrated that our build system cannot properly recompile the dependencies. When I work on XUL I’d like to just be able to type:
cd ./content/xul;
make;
and be done with it.
Unfortunately, for the reasons that are beyond my level of understanding, it never worked this way. Fortunately, the bits that you have to recompile are always the same so I created a small bash script that recompiles what I need plus the dependency:
DIR="$( cd "$( dirname "$0" )" && pwd )" cd $1 && make && cd $DIR/layout && make && cd $DIR/toolkit/library && make
Just place it in your build-dir and then:
./rebuild.sh ./content/xul
will do the rest
enjoy!