#*******************************************************************************
# ALMA - Atacama Large Millimeter Array
# Copyright (c) ESO - European Southern Observatory, 2011
# (in the framework of the ALMA collaboration).
# All rights reserved.
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#*******************************************************************************
#******************************************************************************
# E.S.O. - ALMA project
#
# "@(#) $Id: Makefile,v 1.2 2011/10/25 09:49:36 amchavan Exp $"
#
# Makefile of OBOPS/webshiftlog
# Some of the targets are thin wrappers around the Ant (build.xml) targets 
#
# who       when        what
# --------  ----------  ----------------------------------------------
# amchavan  2008-06-09  Created

# Standard ALMA targets
#----------------------------------------------------------
all:
	ant -find plugin-build.xml all
	@echo "Removing META-INF/services from xercesImpl.jar"
	@if [ -f ../xercesImpl.jar ]; then \
	   mkdir tmp; \
	   mv ../xercesImpl.jar tmp; cd tmp; \
	   unzip -q xercesImpl.jar; \
	   rm -rf META-INF/services; \
	   jar cf xercesImpl.jar META-INF org; \
	   mv xercesImpl.jar ../..; cd ..; \
	   rm -rf tmp; \
	fi

clean:
	ant -find plugin-build.xml clean

# Dummy, don't do anything
install :
