From 6bf805c4207312ce5fd9c7dcfae3e9ff3d007ab0 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Wed, 2 Aug 2017 15:56:36 +0200 Subject: [PATCH] Add submodule context --- Makefile | 3 +++ modules/CONFIG_SITE.local | 5 +++++ modules/Makefile | 28 ++++++++++++++++++++++++++++ modules/RELEASE.local | 1 + 4 files changed, 37 insertions(+) create mode 100644 modules/CONFIG_SITE.local create mode 100644 modules/Makefile create mode 100644 modules/RELEASE.local diff --git a/Makefile b/Makefile index 720fc673d..6efaeb7f2 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/modules/CONFIG_SITE.local b/modules/CONFIG_SITE.local new file mode 100644 index 000000000..336fdf4d1 --- /dev/null +++ b/modules/CONFIG_SITE.local @@ -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 = diff --git a/modules/Makefile b/modules/Makefile new file mode 100644 index 000000000..3d988c771 --- /dev/null +++ b/modules/Makefile @@ -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 diff --git a/modules/RELEASE.local b/modules/RELEASE.local new file mode 100644 index 000000000..22075b88f --- /dev/null +++ b/modules/RELEASE.local @@ -0,0 +1 @@ +EPICS_BASE = $(TOP)/../..