support configs for several python versions

This commit is contained in:
Michael Davidsaver
2013-12-10 21:42:37 -05:00
parent 0060ff7ba9
commit b386e0ff28
3 changed files with 25 additions and 9 deletions

View File

@ -2,15 +2,20 @@ TOP=..
include $(TOP)/configure/CONFIG
ifeq ($(PY_VER),)
$(error Must set PY_VER to select a python version)
endif
PYTHON ?= python$(PY_VER)
TARGETS = $(CONFIG_TARGETS)
ifdef T_A
CONFIGS = CONFIG_PY RULES_PY os/CONFIG_PY.Common.$(T_A)
CONFIGS = CONFIG_PY RULES_PY os/CONFIG_PY$(PY_VER).Common.$(T_A)
endif
include $(TOP)/configure/RULES
os/CONFIG_PY.Common.%: $(TOP)/makehelper.py
os/CONFIG_PY$(PY_VER).Common.$(T_A): $(TOP)/makehelper.py
[ -d $(dir $@) ] || $(MKDIR) $(dir $@)
$(PYTHON) $< $@