Most (all?) of the build systems out there today (make, CMake, rake, etc.) are declarative but they lack Prolog's inference capabilities. This gives a specific advantage -- it allows you to reduce fragility of your build system by making it dead simple to tell when you've combined incompatible configuration options (e.g., compiler flags) which you might otherwise discover halfway through a long build.
For a quick overview, check out the paper prom: A flexible, Prolog-based make tool[1].
[1]: http://www.cs.vu.nl/~kielmann/papers/THD-SP-1991-04.pdf