From f5659012314afd65db7e4b81e4a8c081ef2f5335 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Mon, 24 Feb 1997 16:08:08 +0000 Subject: [PATCH] Added support for all action*arch targets. --- config/RULES.Db | 19 ++++++++++++++++--- config/RULES.ioc | 19 +++++++++++++++++-- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/config/RULES.Db b/config/RULES.Db index 89fdedbed..6db47b2f0 100644 --- a/config/RULES.Db +++ b/config/RULES.Db @@ -1,10 +1,15 @@ #RULES.Db SUBTOOL = $(EPICS_BASE_BIN)/subtool PREFIX=$(shell echo $* | sed -e 's-[0-9]--g' | sed -e 's-\.db--g') +ARCHS += $(BUILD_ARCHS) host cross +ACTIONS += clean inc depends buildInstall build +actionArchTargets = $(foreach action, $(ACTIONS) install,\ + $(foreach arch, $(ARCHS), \ + $(action)$(DIVIDER)$(arch))) + +all install :: inc buildInstall -install: .DEPENDS dbd $(DBFROMTEMPLATE) $(INDDBFROMTEMPLATE) $(PROD) - -buildInstall:: install +buildInstall: .DEPENDS dbd $(DBFROMTEMPLATE) $(INDDBFROMTEMPLATE) $(PROD) inc build depends: @@ -39,5 +44,13 @@ $(INDDBFROMTEMPLATE):%.db: %.substitutions clean:: @$(RM) dbd $(DBFROMTEMPLATE) $(INDDBFROMTEMPLATE) .DEPENDS $(PROD) +$(actionArchTargets) :%: + $(MAKE) $(word 1, $(subst $(DIVIDER), ,$@)) + +$(ARCHS):%: install + +.PHONY :: $(ARCHS) $(ACTIONS) +.PHONY :: $(actionArchTargets) + -include .DEPENDS diff --git a/config/RULES.ioc b/config/RULES.ioc index 6671d1ea4..ea4cea77e 100644 --- a/config/RULES.ioc +++ b/config/RULES.ioc @@ -2,10 +2,15 @@ APPDIR := $(shell grep '.*".*App/' st.* | sed -e 's/.*"\(.*App\).*/\1/' | sort -u ) ASCF = $(TOP)/../ascf TARGETBIN = $(TOP)/bin/$(ARCH) +ARCHS = $(BUILD_ARCHS) host cross +ACTIONS += clean inc depends buildInstall build +actionArchTargets = $(foreach action, $(ACTIONS) install,\ + $(foreach arch, $(ARCHS), \ + $(action)$(DIVIDER)$(arch))) -install: makelinks +all install :: inc buildInstall -buildInstall:: install +buildInstall: makelinks inc build depends: @@ -33,3 +38,13 @@ makelinks: clean:: @$(RM) ascf bin vxWorks vxWorks.sym dbd share $(APPDIR) + +$(actionArchTargets) :%: + $(MAKE) $(word 1, $(subst $(DIVIDER), ,$@)) + +$(ARCHS):%: install + +.PHONY :: $(ARCHS) $(ACTIONS) +.PHONY :: $(actionArchTargets) + +