Add submodule context

This commit is contained in:
Ralph Lange
2017-08-02 15:56:36 +02:00
parent 2692c0698a
commit 6bf805c420
4 changed files with 37 additions and 0 deletions

View File

@ -19,4 +19,7 @@ src_DEPEND_DIRS = configure
DIRS += test
test_DEPEND_DIRS = src
DIRS += modules
modules_DEPEND_DIRS = src
include $(TOP)/configure/RULES_TOP

View File

@ -0,0 +1,5 @@
# FIXME: for a non-local install of the bundle, this has to be changes for the submodules
INSTALL_LOCATION = $(TOP)/../..
# Do not install configuration from base submodules
CONFIG_INSTALLS =

28
modules/Makefile Normal file
View File

@ -0,0 +1,28 @@
#*************************************************************************
# Copyright (c) 2017 The University of Chicago, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2017 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE is distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
TOP = ..
include $(TOP)/configure/CONFIG
# Submodules for bundle build
SUBMODULES += libcom ca database
ca_DEPEND_DIRS = libcom
database_DEPEND_DIRS = ca
# Add any checked-out submodules to DIRS
define SUBMODULE_template
ifneq ($(wildcard $1/Makefile),)
DIRS += $1
endif
endef
$(foreach mod, $(SUBMODULES), \
$(eval $(call SUBMODULE_template,$(strip $(mod)))))
include $(TOP)/configure/RULES_DIRS

1
modules/RELEASE.local Normal file
View File

@ -0,0 +1 @@
EPICS_BASE = $(TOP)/../..