The recent changes to add a build.h break the build, when building with qmake and using a different build directory from source directory (Qt creator does this by default).
To reproduce:
$ mkdir bitcoin-qt-build-desktop
$ cd bitcoin-qt-build-desktop
$ qmake ../bitcoin
$ make
...
make: *** No rule to make target `../bitcoin/src/build.h', needed by `build/version.o'. Stop.
I've tried fixing it with the suggestions here, but was unsuccessful: http://stackoverflow.com/questions/5192714/how-to-refer-to-the-source-directory-in-qmake
Ideally, the build process should leave the source directory untouched when building in this way. Other generated source files such as ui__.h, .mocs and .qms also end up in the build direcory, not the source dir. Because of this, _build_dir*/build directory is in the include path, for example. Maybe we could place build.h there?