Add build matrix generation target

Based on a patch by @TobiX.

Some questions about this patch I want to hear more on:
- Should the build-matrix and build-matrix.html targets both be there?
- If so, should they both be phony targets or one phony one real?