epics-modules / xxx

APS BCDA synApps module: xxx
http://epics-modules.github.io/xxx
Other
5 stars 6 forks source link

Enhancement to configure/CONFIG #50

Closed anjohnson closed 2 years ago

anjohnson commented 3 years ago

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.

keenanlang commented 2 years ago

added with db3b995