mesa: automake: add directory prefix for git_sha1.h
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 6 Jun 2016 15:50:14 +0000 (16:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Jun 2016 11:21:45 +0000 (12:21 +0100)
Otherwise the build will assume that we've talking about builddir, which
is not the case in the else statement.

Here the file is already generated and is part of the tarball.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/Makefile.am

index 45590c0..08446a8 100644 (file)
@@ -32,7 +32,7 @@ git_sha1.h.tmp:
                        > git_sha1.h.tmp ; \
                fi \
        else \
-               cp git_sha1.h git_sha1.h.tmp ;\
+               cp $(srcdir)/git_sha1.h git_sha1.h.tmp ;\
        fi
 
 git_sha1.h: git_sha1.h.tmp