#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 0.7 2004/07/29 12:05:28 vltsccm Exp $"
#
# Makefile of dicVIRCAM
#
# who       when      what
# --------  --------  ----------------------------------------------
# sbeard    19/06/03  original copied from Template Instrument dicXXXX V1.23 
# sbeard    07/08/03  WFS subsystem dictionary added
#

#*******************************************************************************
# This Makefile follows VLT Standards (see Makefile(5) for more).
#*******************************************************************************
# REMARKS
#    None
#------------------------------------------------------------------------

#
# MODULE CODE DESCRIPTION:
# ------------------------

#
# INS_ROOT files to be installed
#-------------------------------
INS_ROOT_FILES = ../config/ESO-VLT-DIC.VIRCAM_ICS \
		 ../config/ESO-VLT-DIC.VIRCAM_HOWFS \
		 ../config/ESO-VLT-DIC.VIRCAM_CFG \
		 ../config/ESO-VLT-DIC.VIRCAM_OS

#
# list of all possible C-sources (used to create automatic dependencies)
# ------------------------------
CSOURCENAMES = \
	$(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \
	$(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS))

#
# INCLUDE STANDARDS
# -----------------
MAKEDIR = $(VLTROOT)/include
include $(MAKEDIR)/vltMakefile

#
# Dictionary target
# -----------------
#
DICT_ICS = VIRCAM_ICS
DICT_HOWFS = VIRCAM_HOWFS
DICT_CFG = VIRCAM_CFG
DICT_OS  = VIRCAM_OS

do_dic :
	@echo "== Making dictionary: ESO-VLT-DIC.$(DICT_ICS) "
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_ICS)
	$(AT)ctooTxt2Dic dic$(DICT_ICS).txt > ../config/ESO-VLT-DIC.$(DICT_ICS)
	@echo "== Making dictionary: ESO-VLT-DIC.$(DICT_HOWFS) "
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_HOWFS)
	$(AT)ctooTxt2Dic dic$(DICT_HOWFS).txt > ../config/ESO-VLT-DIC.$(DICT_HOWFS)
	@echo "== Making dictionary: ESO-VLT-DIC.$(DICT_CFG) "
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_CFG)
	$(AT)ctooTxt2Dic dic$(DICT_CFG).txt > ../config/ESO-VLT-DIC.$(DICT_CFG)
	@echo "== Making dictionary: ESO-VLT-DIC.$(DICT_OS) "
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_OS)
	$(AT)ctooTxt2Dic dic$(DICT_OS).txt > ../config/ESO-VLT-DIC.$(DICT_OS)

clean_dic :
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_ICS)
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_HOWFS)
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_CFG)
	$(AT)rm -f ../config/ESO-VLT-DIC.$(DICT_OS)


#
# TARGETS
# -------
all:	do_all do_dic
	@echo " . . . 'all' done" 

clean : clean_all  clean_dic
	@echo " . . . clean done"

man   : do_man 
	@echo " . . . man page(s) done"

install : install_all
	@echo " . . . installation done"

db : db_all
	@echo " . . . ../DB done"


#___oOo___
