#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.24 2003/08/01 14:24:01 vltsccm Exp $"
#
# Makefile of dicVDFS
#
# who       when      what
# --------  --------  ----------------------------------------------
# pbunclark 2004-07-26 created from dicXXXX templates
#

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

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

#
# Dictionary target
# -----------------
#
DICTIONARIES = VISTA_TCS

DIC_SOURCE = $(DICTIONARIES:%=%.txt)

#
# INS_ROOT files to be installed
#-------------------------------
INS_ROOT_FILES = $(DICTIONARIES:%=../config/ESO-VIS-DIC.%)

#
# 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

../config/ESO-VIS-DIC.%:	dic%.txt
	@echo "== Making dictionary: ESO-VIS-DIC.% "
	$(AT)rm -f ../config/ESO-VIS-DIC.%
	ctooTxt2Dic dic$*.txt > ../config/ESO-VIS-DIC.$*

do_dic:	$(INS_ROOT_FILES)

clean_dic :
	$(AT)rm -f $(INS_ROOT_FILES)


#
# 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___
