[Mesa-dev] [PATCH][V2] build: fix out-of-tree builds in gallium/auxiliary

Matt Turner mattst88 at gmail.com
Tue Aug 6 10:23:38 PDT 2013


On Tue, Aug 6, 2013 at 7:51 AM, Ross Burton <ross.burton at intel.com> wrote:
> The rules were writing files to e.g. util/u_indices_gen.py, but in an
> out-of-tree build this directory doesn't exist in the build directory.  So,
> create the directories just in case.
>
> NOTE: This is a candidate for the stable branches.
>
> Cc: mesa-stable at lists.freedesktop.org
>
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
>  src/gallium/auxiliary/Makefile.am |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am
> index f14279b..d785f5a 100644
> --- a/src/gallium/auxiliary/Makefile.am
> +++ b/src/gallium/auxiliary/Makefile.am
> @@ -38,13 +38,17 @@ libgallium_la_SOURCES += \
>  endif
>
>  indices/u_indices_gen.c: $(srcdir)/indices/u_indices_gen.py
> +       mkdir -p indices

Use $(MKDIR_P), as previously suggested (like other Makefile.ams do).


More information about the mesa-dev mailing list