install python per epics arch

This commit is contained in:
Michael Davidsaver
2013-12-08 13:09:16 -05:00
parent cdc899037c
commit 639baab55d
3 changed files with 9 additions and 4 deletions

View File

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