chiark / gitweb /
build-sys: always create the output directory first
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Jul 2012 21:57:50 +0000 (23:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Jul 2012 22:27:56 +0000 (00:27 +0200)
commitbd923ff29e09eee0a6be15813339351cd2175b62
treeadcc0d8ccd3606e8afe8270d548ee66fd2268de3
parent023b9d33e93ea79b6f81daab82cfdca35360e2d0
build-sys: always create the output directory first

$(MKDIR_P) is added where missing, and rules are standardized on one
form of $(MKDIR_P), to make it easier to spot when it is missing.
Single line $(MKDIR)&&command form is broken into two line form.

https://bugs.freedesktop.org/show_bug.cgi?id=49459

For compilation in a separate build directory to work, when a file is
generated, the rule must include an explicit mkdir first, unless the
file is created at the top level. Even when building in a separate
build-dir, automake would normally create all directories as a side
result of creating the dependencies files. Therefore the bug was only
visible with -C (turning off dependency generation).
Makefile.am