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

1
.gitignore vendored
View File

@ -7,4 +7,5 @@ include
lib
db
dbd
python
_build

View File

@ -12,6 +12,8 @@ $(foreach dir, $(filter-out configure,$(DIRS)),$(eval $(call DIR_template,$(dir)
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
UNINSTALL_DIRS += $(TOP)/python
include $(TOP)/configure/RULES_TOP
#useful targets includ: doc-html and doc-clean

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)

View File

@ -50,9 +50,18 @@ devsup_SRCS += dbdset.c
# Finally link to the EPICS Base libraries
devsup_LIBS += $(EPICS_BASE_IOC_LIBS)
PY += devsup/__init__.py
PY += devsup/_nullapi.py
PY += devsup/db.py
PY += devsup/hooks.py
PY += devsup/interfaces.py
PY += devsup/util.py
#===========================
include $(TOP)/configure/RULES
include $(TOP)/configure/RULES_PY
#----------------------------------------
# ADD RULES AFTER THIS LINE