build: Introduce a pattern rule for configuration targets

Signed-off-by: Diego Biurrun <diego@biurrun.de>