summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/genxml/Makefile.am')
-rw-r--r--src/intel/genxml/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am
index f493d48253b..0b5b3a67918 100644
--- a/src/intel/genxml/Makefile.am
+++ b/src/intel/genxml/Makefile.am
@@ -28,7 +28,11 @@ BUILT_SOURCES = \
PYTHON3_GEN = $(AM_V_GEN)$(PYTHON3) $(PYTHON_FLAGS)
-%_pack.h : %.xml gen_pack_header.py
+SUFFIXES = _pack.h .xml
+
+$(BUILT_SOURCES): gen_pack_header.py
+
+.xml_pack.h:
$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py $< > $@
CLEANFILES = $(BUILT_SOURCES)