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 45590c0a07a4ab44c6e539e6aaabac77629b86c5..08446a8d14a4346adda453e98e0aaacdde679176 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