Heuristics for determining python2 binary

This commit is contained in:
Norman Feske 2012-04-04 21:51:27 +02:00
parent f150b00c0d
commit 63827dda00

View File

@ -32,9 +32,11 @@ CC_OPT_u_debug_stack += -Wno-unused-but-set-variable
CC_OPT_u_format_access += -Wno-unused CC_OPT_u_format_access += -Wno-unused
CC_OPT_vl_mpeg12_mc_renderer += -Wno-enum-compare 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 u_%_gen.c: $(GALLIUM_SRC_DIR)/indices/u_%_gen.py
$(MSG_CONVERT)$@ $(MSG_CONVERT)$@
@python2 $< > $@ $(PYTHON2) $< > $@
# #
# To generate 'u_format_pack.h' as well, so we explicitly state that # 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 u_format_%.c u_format_%.h: $(GALLIUM_AUX_SRC_DIR)/util/u_format_%.py
$(MSG_CONVERT)$@ $(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)) vpath %.c $(addprefix $(GALLIUM_AUX_SRC_DIR)/,$(SUBDIRS))