epics-modules / xxx

APS BCDA synApps module: xxx

Home Page:http://epics-modules.github.io/xxx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement to configure/CONFIG

anjohnson opened this issue · comments

This change (taken from a recent 7.0 makeBaseApp template) might help reduce reports from new-comers to EPICS:

--- a/configure/CONFIG
+++ b/configure/CONFIG
@@ -13,6 +13,15 @@ ifdef T_A
 -include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A)
 endif
 
+# Check EPICS_BASE is set properly
+ifneq (file,$(origin EPICS_BASE))
+  $(error EPICS_BASE must be set in a configure/RELEASE file)
+else
+  ifeq ($(wildcard $(EPICS_BASE)/configure/CONFIG_BASE),)
+    $(error EPICS_BASE does not point to an EPICS installation)
+  endif
+endif
+
 CONFIG = $(RULES)/configure
 include $(CONFIG)/CONFIG
 

This can be added to any/all EPICS support modules.

added with db3b995