mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
genxml: avoid using a GNU make pattern rule
% pattern rules are a GNU extension. Convert the use of one to a inference rule to allow this to build on OpenBSD. v2: inference rules can't have additional prerequisites so add a target rule to still depend on gen_pack_header.py Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
430797843a
commit
e3d43dc5ea
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue