#Variables
include $(SCT_DAQ_ROOT)/build/Makefile.include
#Commands
include $(SCT_DAQ_ROOT)/build/Makefile.commands

#Phony Targets
.PHONY: all c++ test install clean distclean

all install: install_config

distclean clean: # Nothing to remove 

FILES = sct_ddc.data.xml DDCHardware_template.data.xml dcs_ddc.schema.xml # Don't need all the databases (and they're in the run directory not "databases"!)
OUTFILES = $(addprefix $(ConfigDir)/databases/,$(FILES))

install_config: $(ConfigDir)/databases $(OUTFILES)

$(ConfigDir)/databases/%: % 
	$(CPCMD)

$(ConfigDir)/databases: 
	mkdir -p $(@D)
