Submodule build configuration fixes
Remove modules/RELEASE.local from repository, create it at run-time instead of RELEASE.base.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,7 +7,7 @@
|
||||
/include/
|
||||
/templates/
|
||||
/configure/*.local
|
||||
/modules/RELEASE.base
|
||||
/modules/RELEASE.local
|
||||
O.*/
|
||||
/QtC-*
|
||||
*.orig
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Fallback / bootstrap
|
||||
EPICS_BASE = $(TOP)/../..
|
||||
|
||||
-include RELEASE.base
|
||||
Reference in New Issue
Block a user