install py files
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,5 @@ include
|
|||||||
lib
|
lib
|
||||||
db
|
db
|
||||||
dbd
|
dbd
|
||||||
|
python
|
||||||
_build
|
_build
|
||||||
|
2
Makefile
2
Makefile
@ -12,6 +12,8 @@ $(foreach dir, $(filter-out configure,$(DIRS)),$(eval $(call DIR_template,$(dir)
|
|||||||
|
|
||||||
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
|
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
|
||||||
|
|
||||||
|
UNINSTALL_DIRS += $(TOP)/python
|
||||||
|
|
||||||
include $(TOP)/configure/RULES_TOP
|
include $(TOP)/configure/RULES_TOP
|
||||||
|
|
||||||
#useful targets includ: doc-html and doc-clean
|
#useful targets includ: doc-html and doc-clean
|
||||||
|
@ -5,9 +5,12 @@ include $(TOP)/configure/CONFIG
|
|||||||
TARGETS = $(CONFIG_TARGETS)
|
TARGETS = $(CONFIG_TARGETS)
|
||||||
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
|
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
|
||||||
|
|
||||||
TARGETS += CONFIG_PY
|
TARGETS += CONFIG_PY RULES_PY
|
||||||
|
|
||||||
include $(TOP)/configure/RULES
|
include $(TOP)/configure/RULES
|
||||||
|
|
||||||
CONFIG_PY: $(TOP)/makehelper.py
|
CONFIG_PY: $(TOP)/makehelper.py
|
||||||
$(PYTHON) $< $@
|
$(PYTHON) $< $@
|
||||||
|
|
||||||
|
RULES_PY: ../RULES_PY
|
||||||
|
install -m644 $< $@
|
||||||
|
9
configure/RULES_PY
Normal file
9
configure/RULES_PY
Normal 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)
|
@ -50,9 +50,18 @@ devsup_SRCS += dbdset.c
|
|||||||
# Finally link to the EPICS Base libraries
|
# Finally link to the EPICS Base libraries
|
||||||
devsup_LIBS += $(EPICS_BASE_IOC_LIBS)
|
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
|
||||||
|
include $(TOP)/configure/RULES_PY
|
||||||
#----------------------------------------
|
#----------------------------------------
|
||||||
# ADD RULES AFTER THIS LINE
|
# ADD RULES AFTER THIS LINE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user