vk/image: Add an explicit DestroyImage function
[mesa.git] / src / mesa / Makefile.am
index 3dab8f03f98834a1a6aca29caf27093b5a540e9f..4ba5b2fac291c6293a81c066d77b25e24dc8f04b 100644 (file)
@@ -40,8 +40,11 @@ gl_HEADERS = $(top_srcdir)/include/GL/*.h
 
 .PHONY: main/git_sha1.h.tmp
 main/git_sha1.h.tmp:
+       @# Don't assume that $(top_srcdir)/.git is a directory. It may be
+       @# a gitlink file if $(top_srcdir) is a submodule checkout or a linked
+       @# worktree.
        @touch main/git_sha1.h.tmp
-       @if test -d $(top_srcdir)/.git; then \
+       @if test -e $(top_srcdir)/.git; then \
                if which git > /dev/null; then \
                    git --git-dir=$(top_srcdir)/.git log -n 1 --oneline | \
                        sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
@@ -60,7 +63,6 @@ main/git_sha1.h: main/git_sha1.h.tmp
 include Makefile.sources
 
 EXTRA_DIST = \
-       drivers/haiku \
        drivers/SConscript \
        main/format_info.py \
        main/format_pack.py \
@@ -174,6 +176,7 @@ endif
 libmesa_la_SOURCES = \
        $(MESA_FILES) \
        $(PROGRAM_FILES) \
+       $(PROGRAM_NIR_FILES) \
        $(MESA_ASM_FILES_FOR_ARCH)
 
 libmesa_la_LIBADD = \
@@ -183,6 +186,7 @@ libmesa_la_LIBADD = \
 libmesagallium_la_SOURCES = \
        $(MESA_GALLIUM_FILES) \
        $(PROGRAM_FILES) \
+       $(PROGRAM_NIR_FILES) \
        $(MESA_ASM_FILES_FOR_ARCH)
 
 libmesagallium_la_LIBADD = \