#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.2 2005/05/09 10:27:43 gchiozzi Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# gchiozz   09/05/05 created
#

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

#
# Scripts (public and local)
# ----------------------------
SCRIPTS         = accdbConfig
SCRIPTS_L       = 



#
# man pages to be done
# --------------------
MANSECTIONS = 1
MAN1 = accdbConfig
MAN3 =
MAN5 =
MAN7 =
MAN8 =

#
# local man pages
# ---------------
MANl = 

#
# ASCII file to be converted into Framemaker-MIF
# --------------------
ASCII_TO_MIF = 


#
# other files to be installed
#----------------------------
INSTALL_FILES =

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

#
#>>>>> END OF standard rules

#
# CHOSE PLATFORM
# --------------
# Default is UNIX, for VxVorks application next line MUST BE UNCOMMENTED
#MAKE_VXWORKS = on   

#
# INCLUDE STANDARDS
# -----------------
SHELL = /bin/sh 
MAKEDIRTMP := $(shell searchFile include/acsMakefile)
ifneq ($(MAKEDIRTMP),\#error\#)
   MAKEDIR := $(MAKEDIRTMP)/include
   include $(MAKEDIR)/acsMakefile
endif



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

clean : clean_all 
	$(RM) ../*~ ../*/*~ ../*/*~ ../*/*/*~ ../*/*/*/*~ ../*/*/*/*/*~
	@echo " . . . clean done"

clean_dist : clean clean_dist_all 
	@echo " . . . clean_dist done"

#
# TODO: GCH build and install of complete ACS documentation is an hack
#           and should be re-written in a nicer way
# 
man   : do_man 
	@echo " . . . documentation page(s) done"

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


install_config:
	@echo " . . . installing msql acc configuration in ACSROOT/config"
	-@gtar -cf - --exclude="CVS" -C ../config msql  | gtar -xf - -C $(VLTTOP)/config; \
	         chmod -R ug+rw $(VLTTOP)/config/msql;


#___oOo___
