TOP=../..
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE

#----------------------------------------------------
#  Optimization of db files using dbst (DEFAULT: NO)
#DB_OPT = YES

#----------------------------------------------------
# Create and install (or just install)
# databases, templates, substitutions like this
DB += padwaveform.db
DB += padlongin.db 
DB += padlongout.db 
#DB += aiTest.db 
DB += padai.db 
DB += padmbbo.db 
DB += padbo.db 

DB += padLAB01.kly_template
DB += padTS01.kly_template

# DB_INSTALLS += pad.acf 

#DB_INSTALLS += $(IOCADMIN)/db/iocAdmin.db
#DB_INSTALLS += $(IOCADMIN)/db/access.db
#DB_INSTALLS += $(IOCADMIN)/db/baseSecurity.acf

#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_TEMPLATE = <templatename>

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

%.kly_template: ../%.kly_substitutions ../pad.kly_template
	$(RM) $@
	../buildtemplate $< $@

clean::
	$(RM) $(patsubst %.substitutions,%.template,$(wildcard *.substitutions))
