Skip to content

Commit

Permalink
Merge pull request #9 from ddamiani/master
Browse files Browse the repository at this point in the history
Add syncts script rules.
  • Loading branch information
ddamiani authored Sep 24, 2024
2 parents 1633dc2 + 6ec0b75 commit a982b96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions RULES_EXPAND
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ IOC_DEP_PATTERN += $(BUILD_TOP)/Makefile
IOC_DEP_PATTERN += $(BUILD_TOP)/iocBoot/__IOC__/edm-__IOC__.cmd
IOC_DEP_PATTERN += $(BUILD_TOP)/iocBoot/__IOC__/pydm-__IOC__.cmd
IOC_DEP_PATTERN += $(BUILD_TOP)/iocBoot/__IOC__/launchgui-__IOC__.cmd
IOC_DEP_PATTERN += $(BUILD_TOP)/iocBoot/__IOC__/syncts-__IOC__.cmd


DIR_LIST += $(BUILD_TOP)
Expand Down Expand Up @@ -97,6 +98,12 @@ $(BUILD_TOP)/iocBoot/$(1)/launchgui-$(1).cmd: $(1).cfg
@if [ -f $(IOC_APPL_TOP)/iocBoot/templates/launchgui-ioc.cmd ]; then $(EXPAND) -c $(1).cfg $(IOC_APPL_TOP)/iocBoot/templates/launchgui-ioc.cmd $$@ IOCNAME=$(1) TOP=$(BUILD_TOP_ABS) IOCTOP=$(IOC_APPL_TOP); else echo "#!/bin/sh" > $$@; echo "echo No $(IOC_APPL_TOP)/iocBoot/templates/launchgui-ioc.cmd found!" >> $$@; fi
@-chmod ug+w,a+x $$@

# Expand $(BUILD_TOP)/iocBoot/$(1)/syncts-$(1).cmd
$(BUILD_TOP)/iocBoot/$(1)/syncts-$(1).cmd: $(1).cfg
@echo Expanding $$@
@if [ -f $(IOC_APPL_TOP)/iocBoot/templates/syncts-ioc.cmd ]; then $(EXPAND) -c $(1).cfg $(IOC_APPL_TOP)/iocBoot/templates/syncts-ioc.cmd $$@ IOCNAME=$(1) TOP=$(BUILD_TOP_ABS) IOCTOP=$(IOC_APPL_TOP); else echo "#!/bin/sh" > $$@; echo "echo No $(IOC_APPL_TOP)/iocBoot/templates/syncts-ioc.cmd found!" >> $$@; fi
@-chmod ug+w,a+x $$@

# Create $(BUILD_TOP)/iocBoot/$(1)/IOC_APPL_TOP
$(BUILD_TOP)/iocBoot/$(1)/IOC_APPL_TOP:
@echo Setting IOC_APPL_TOP to $(IOC_APPL_TOP) for $(1)
Expand Down Expand Up @@ -165,6 +172,7 @@ $(makefile): ;
%/iocBoot/templates/edm-ioc.cmd: ;
%/iocBoot/templates/pydm-ioc.cmd: ;
%/iocBoot/templates/launchgui-ioc.cmd: ;
%/iocBoot/templates/syncts-ioc.cmd: ;

clean distclean realclean: expandclean

Expand Down

0 comments on commit a982b96

Please sign in to comment.