install py files

This commit is contained in:
Michael Davidsaver
2013-05-25 14:17:41 -04:00
parent 2df81d776b
commit ca94435b4e
11 changed files with 25 additions and 1 deletions

View File

@ -5,9 +5,12 @@ include $(TOP)/configure/CONFIG
TARGETS = $(CONFIG_TARGETS)
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
TARGETS += CONFIG_PY
TARGETS += CONFIG_PY RULES_PY
include $(TOP)/configure/RULES
CONFIG_PY: $(TOP)/makehelper.py
$(PYTHON) $< $@
RULES_PY: ../RULES_PY
install -m644 $< $@

9
configure/RULES_PY Normal file
View File

@ -0,0 +1,9 @@
PY_FILES = $(PY:%=$(INSTALL_LOCATION)/python/%)
$(PY_FILES) : $(INSTALL_LOCATION)/python/%: ../%
@[ -d $(dir $@) ] || install -d $(dir $@)
@echo "Install PROTO $@"
install -m 644 $< $@
build: $(PY_FILES)