diff --git a/libports/lib/mk/gallium-aux.mk b/libports/lib/mk/gallium-aux.mk index 31c5cce365..81f4e6e9e3 100644 --- a/libports/lib/mk/gallium-aux.mk +++ b/libports/lib/mk/gallium-aux.mk @@ -32,9 +32,11 @@ CC_OPT_u_debug_stack += -Wno-unused-but-set-variable CC_OPT_u_format_access += -Wno-unused CC_OPT_vl_mpeg12_mc_renderer += -Wno-enum-compare +PYTHON2 := $(VERBOSE)$(lastword $(shell which python2 python2.{4,5,6,7,8})) + u_%_gen.c: $(GALLIUM_SRC_DIR)/indices/u_%_gen.py $(MSG_CONVERT)$@ - @python2 $< > $@ + $(PYTHON2) $< > $@ # # To generate 'u_format_pack.h' as well, so we explicitly state that @@ -44,6 +46,6 @@ u_format_access.c: u_format_pack.h u_format_%.c u_format_%.h: $(GALLIUM_AUX_SRC_DIR)/util/u_format_%.py $(MSG_CONVERT)$@ - @python2 $< $(GALLIUM_AUX_SRC_DIR)/util/u_format.csv > $@ + $(PYTHON2) $< $(GALLIUM_AUX_SRC_DIR)/util/u_format.csv > $@ vpath %.c $(addprefix $(GALLIUM_AUX_SRC_DIR)/,$(SUBDIRS))