Submodule build configuration fixes

Remove modules/RELEASE.local from repository,
create it at run-time instead of RELEASE.base.
This commit is contained in:
Andrew Johnson
2017-11-14 20:49:54 -06:00
parent 7b71cbee7a
commit 202fbe4ffb
4 changed files with 16 additions and 13 deletions

2
.gitignore vendored
View File

@@ -7,7 +7,7 @@
/include/
/templates/
/configure/*.local
/modules/RELEASE.base
/modules/RELEASE.local
O.*/
/QtC-*
*.orig

View File

@@ -1,5 +1,10 @@
# FIXME: for a non-local install of the bundle, this has to be changes for the submodules
INSTALL_LOCATION = $(TOP)/../..
#*************************************************************************
# EPICS BASE is distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# Do not install configuration from base submodules
# When building submodules, this should always be true:
INSTALL_LOCATION = $(EPICS_BASE)
# Stop submodules from installing their configuration files:
CONFIG_INSTALLS =

View File

@@ -10,8 +10,6 @@
TOP = ..
include $(TOP)/configure/CONFIG
inc: RELEASE.base
# Submodules for bundle build
SUBMODULES += libcom
@@ -49,7 +47,11 @@ DIRS += $(subst /,,$(dir $(wildcard $(addsuffix /Makefile, $(SUBMODULES)))))
include $(TOP)/configure/RULES_DIRS
RELEASE.base:
@echo "EPICS_BASE = $(dir $(abspath $(lastword $(MAKEFILE_LIST))/..))" > $@
# Ensure that RELEASE.local exists before doing anything else
all host $(DIRS) $(ARCHS) $(ACTIONS) $(dirActionTargets) $(dirArchTargets) \
$(dirActionArchTargets) $(actionArchTargets): | RELEASE.local
RELEASE.local:
@echo "EPICS_BASE = $(abspath $(INSTALL_LOCATION))"> $@
realclean:
$(RM) RELEASE.base
$(RM) RELEASE.local

View File

@@ -1,4 +0,0 @@
# Fallback / bootstrap
EPICS_BASE = $(TOP)/../..
-include RELEASE.base