
AUTOMAKE_OPTIONS = foreign

#Put here all the workflows. They must end with extension .in. They should
#be like a normal workflow but using @prefix@ for paths 
#to the OCA rules (grep OCA in the xml file) or Python scripts
WORKFLOWS = uves.xml uves-dflats.xml uves-fibre.xml uves-fibre-520.xml
#Put here the OCA rules used by the workflow
OCAWKF =  uves_wkf.oca uves_wkf_onlydflats.oca uves_fibre.oca
#Put Python scripts used by the workflows
PYTHONWKF = uves_plot_common.py uves_cal_predict_interact.py uves_cal_wavecal_interact.py uves_cal_response_interact.py uves_obs_scired_interact.py flames_cal_predict_interact.py flames_cal_wavecal_interact.py flames_obs_scired_interact.py  flames_plot_common.py

#This installs the workflow and the OCA rules in reflexaux directory
wkfextra_DATA = $(WORKFLOWS) $(OCAWKF) $(PYTHONWKF)

#Pack in the distribution the original workflow
EXTRA_DIST = $(WORKFLOWS).in $(OCAWKF) $(PYTHONWKF)

#This also installs the workflow in the common reflex directory
wkfcopy_DATA = $(WORKFLOWS)

#This is the same, but with a link. Unfortunately it does not work when
#using the make distcheck option
#install-data-hook:
#	mkdir -p $(wkflinkdir) && \
#	cd  $(wkfdir) && \
#	for wkf in $(WORKFLOWS) ; do \
#	$(LN_S) -f $(wkfdir)/$$wkf $(wkflinkdir)/$$wkf ; done
#
#uninstall-hook:
#	cd $(wkflinkdir) && \
#	$(RM) -f $(WORKFLOWS) 

