ac: automake: ensure that ./common is generated
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 12 Jan 2017 22:13:21 +0000 (22:13 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 Jan 2017 03:07:48 +0000 (03:07 +0000)
Depending on the autoconf (or friends) version one may or may not have
the ./common folder created. Thus in the latter case we'll fail to
generate the file.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Darren Salt <devspam@moreofthesa.me.uk>
Reported-by: Darren Salt <devspam@moreofthesa.me.uk>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/amd/Makefile.common.am

index ab69fc337aadaba4c06cdf38785e47aec05496be..832a9434dce9e825d91f10f183d391c90169bbf2 100644 (file)
@@ -66,6 +66,7 @@ endif
 endif
 
 common/sid_tables.h: $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h
+       $(AM_V_at)$(MKDIR_P) $(@D)
        $(AM_V_GEN) $(PYTHON2) $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h > $@
 
 BUILT_SOURCES = $(AMD_GENERATED_FILES)