#==============================================================
#
#  Abs:  Makefile to build EPICS Database components
#
#  Name: Makefile
#
#  Facility:  XTA faraday cup
#
#  Auth: 29-Feb-2012, Arturo Alarcon  (USERNAME)
#  Rev:  dd-mmm-yyyy, First Lastname  (USERNAME)
#--------------------------------------------------------------
#  Mod:
#
#==============================================================
#
TOP=../../..
include $(TOP)/configure/CONFIG

# Generate 
GENEARTE_EDM := $(shell ./gen_trig_edl.sh)

#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#----------------------------------------------------
#  Optimization of db files using dbst (DEFAULT: NO)
#DB_OPT = YES

#----------------------------------------------------
# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this

DB += IOC-XT01-IM01-adc.db
DB += IOC-XT01-IM01evr.db
DB += IOC-XT01-IM01pattern.db
DB += IOC-XT01-IM01bsa.db
DB += IOC-XT01-IM01trig.db

gen_trig_edl:
	create_edm_event_msi.py IOC-XT01-IM01trig.substitutions

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE
