#*******************************************************************************
# E.S.O. - ACS project
#
# "@(#) $Id: Makefile,v 1.2 2008/04/03 12:07:33 swilliam Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
#

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

DEBUG = on

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

#
# Jarfiles and their directories
#
#JARFILES = archive_manager
#archive_manager_DIRS =  alma
#archive_manager_EXTRAS = 

INSTALL_FILES =

#>>>>> END OF standard rules


#
# INCLUDE STANDARDS
# -----------------
ifdef ACSROOT
    MAKEDIR  = $(shell if [ -f $(INTROOT)/include/acsMakefile ];  then \
                     echo $(INTROOT)/include; \
	           else \
	             echo $(ACSROOT)/include; \
		   fi;)
    include $(MAKEDIR)/acsMakefile
else
    MAKEDIR  = $(shell if [ -f $(INTROOT)/include/vltMakefile ];  then \
                     echo $(INTROOT)/include; \
	           else \
	             echo $(VLTROOT)/include; \
		   fi;)
    include $(MAKEDIR)/vltMakefile
endif

all : do_all
	@ant war
	@echo " . . . 'all' done"

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

clean_dist : clean_all clean_dist_all
	@ant distclean
	@echo " . . . clean_dist done"

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

install : install_all
	@tomcat status > /dev/null; \
	if test "$$?" != "3"; then \
		echo 'Cannot install while tomcat is running'; \
		exit 1; \
	fi
	@ant install
	@echo " . . . installation done"

#___oOo___
