Makefile updates from p4p

This commit is contained in:
Michael Davidsaver
2018-11-02 16:47:57 -07:00
parent 62b4a046bc
commit 1d8c6ab7b5
4 changed files with 50 additions and 26 deletions

View File

@ -2,20 +2,19 @@ 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$(PY_VER).Common.$(T_A)
CONFIGS = CONFIG_PY RULES_PY os/CONFIG_PY.Common.$(T_A)
endif
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
include $(TOP)/configure/RULES
os/CONFIG_PY$(PY_VER).Common.$(T_A): $(TOP)/makehelper.py
os/CONFIG_PY.Common.$(T_A): $(TOP)/makehelper.py
[ -d $(dir $@) ] || $(MKDIR) $(dir $@)
$(PYTHON) $< $@