-.PHONY: main/git_sha1.h.tmp
-main/git_sha1.h.tmp:
- @touch main/git_sha1.h.tmp
- @if test -d ../../.git; then \
- if which git > /dev/null; then \
- git log -n 1 --oneline | \
- sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
- > main/git_sha1.h.tmp ; \
- fi \
- fi
-
-main/git_sha1.h: main/git_sha1.h.tmp
- @echo "updating main/git_sha1.h"
- @if ! cmp -s main/git_sha1.h.tmp main/git_sha1.h; then \
- mv main/git_sha1.h.tmp main/git_sha1.h ;\
- else \
- rm main/git_sha1.h.tmp ;\
- fi
-
-# include glapi_gen.mk for generating glapi headers for GLES
-GLAPI = $(top_srcdir)/src/mapi/glapi/gen
-include $(GLAPI)/glapi_gen.mk
+include Makefile.sources
+
+EXTRA_DIST = \
+ drivers/SConscript \
+ main/format_info.py \
+ main/format_pack.py \
+ main/format_parser.py \
+ main/format_unpack.py \
+ main/formats.csv \
+ main/get_hash_generator.py \
+ main/get_hash_params.py \
+ program/program_lexer.l \
+ program/program_parse.y \
+ SConscript \
+ swrast/NOTES \
+ swrast_setup/NOTES \
+ tnl/NOTES \
+ tnl_dd