$(patsubst) doesn't work here, breaking distcheck. Signed-off-by: Simon McVittie <smcv@collabora.com>