aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/Makefile.am')
-rw-r--r--src/mesa/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index 8d8082ae36a..6b00310032f 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -83,6 +83,7 @@ BUILT_SOURCES = \
main/get_hash.h \
main/format_info.c \
$(BUILDDIR)main/git_sha1.h \
+ main/format_pack.c \
$(BUILDDIR)program/program_parse.tab.c \
$(BUILDDIR)program/lex.yy.c
CLEANFILES = \
@@ -106,6 +107,14 @@ main/format_info.c: main/formats.csv \
+main/format_pack.c: main/format_pack.py main/formats.csv \
+ main/format_parser.py
+ $(AM_V_GEN)set -e; \
+ $(PYTHON2) $(PYTHON_FLAGS) \
+ $(srcdir)/main/format_pack.py \
+ $(srcdir)/main/formats.csv \
+ | $(INDENT) $(INDENT_FLAGS) > $@;
+
main/formats.c: main/format_info.c
noinst_LTLIBRARIES = $(ARCH_LIBS)