# Makefile.am - toplevel Makefile for Apache JServ -*-Makefile-*-
# Author: Tommy Reilly <tpr@neog.com>
# $Id: Makefile.am,v 1.6 1999/10/25 22:44:57 admin Exp $

# tell automake to what kind of project we are
AUTOMAKE_OPTIONS = foreign

# do a make in here 
SUBDIRS = src docs example conf

# stuff we want in the apache-jserv-VERSION.tar.gz distribution
EXTRA_DIST = index.html LICENSE README.build

# files removed when you do make maintainerclean (you need special tools
# to rebuild these files)
MAINTAINERCLEANFILES=config.cache config.status config.log \
Makefile.in config.hin aclocal.m4 configure

PACKAGES = org.apache.jserv \
	   org.apache.java.io \
	   org.apache.java.lang \
	   org.apache.java.net \
	   org.apache.java.recycle \
	   org.apache.java.recycle.pool \
	   org.apache.java.security \
	   org.apache.java.util

# 'JAVADOCX' is the javadoc properly wrapped in a classpath definition,
# which depends on the version - it's different for 1.1- and 1.2.
JAVADOCX = @JAVADOCX@
JAVA_PLATFORM = @JAVA_PLATFORM@

API = docs/api

javadoc: clean-javadoc
	@ ${JAVADOCX} -private -version -d ${API} ${PACKAGES}
 
clean-javadoc:
	${RM} -rf ${API}/*.html
	${RM} -rf ${API}/*.css
	${RM} -rf ${API}/org
	${RM} -rf ${API}/package-list

clean-generic:
	${RM} -f *~
	${RM} -f ok
