# This makefile was automatically generated by the DOC install script on
# Thu Sep 30 16:12:39 EDT 1999
 
#
# This file forms the basis for a Makefile used to build and maintain the
# DOC package.  The install script uses it to create the Makefile which
# includes the command to configure the DOC with the user's DOC
# Services Bin Directory.
# 
# make
# make all
# make install
#    Sets symbolic links used by the DOC, builds the java classes and
#    configures to use jre and orbixweb in the local environmen
#
# make clean
# make uninstall
#    Removes symbolic links, java classes and configuration files created
#    with "make install"
#
# make build
#    Brings java classes up to date.

all : install

install : set_symbolic_links build configure

uninstall : clean

set_symbolic_links :
	./set_sym_links

build : build_services build_jws

build_jws : build_services 
	jwsbuild build_all.prj

build_services : jre
	cd ./services; gmake

# jre is a symbolic link created my set_sym_links.  jre provides a
# means of checking if the build targets are upto date with respect
# to setting the symbolic links.
jre :
	./set_sym_links

clean : unconfigure unset_symbolic_links clean_services clean_jws

clean_sym_links :
	- ./unset_sym_links

clean_services :
	- cd services; gmake clean

clean_jws :
	find java_class -name \*.class -exec rm -f {} \;
	rm -rf java_class/pcs java_class/doc
	find . -name \*.map -exec rm -rf {} \;

unconfigure :
	- ./configuration/unset_config

unset_symbolic_links:
	- ./unset_sym_links

build_clean : clean build

build_no_configure: set_symbolic_links build

configure :
		configuration/set_config ../bin 
