
default:
	@echo "Type one of the following:"
	@echo "	make compile		to compile .java files"
	@echo "	make tar		to make dataview_src-2.0.tar.Z"
	@echo "	make jar		to make dataview_src-2.0.jar"
	@echo "	make save		save files to the backup sub-directory"
	@echo "	make classes		to make jar and tar files containing classes"
	@echo "	make clear		to clear source files"

tar:
	date > DATE ; \
	cd .. ; \
	tar -cvf dataview_src-2.0.tar $(TAR_FILES) ; \
	compress dataview_src-2.0.tar ; \
	mv dataview_src-2.0.tar.Z dataview ; \
	cd dataview ; \
	cp dataview_src-2.0.tar.Z dataviewsrc.taz ; \
	ls -l dataview_src-2.0.tar.Z dataviewsrc.taz


all: 
	cd util; make -f ../util/makefile all
#	cd mod; make -f ../util/makefile all
	cd tree; make  -f ../util/makefile all
	cd dataview; make  -f ../util/makefile all
	cd TGraph; make  -f ../util/makefile all
	cd client; make  -f ../util/makefile all
	cd xml; make  -f ../util/makefile all
	cd mml; make  -f ../util/makefile all
	cd wizard; make  -f ../util/makefile all
	cd globus; make -f ../util/makefile all
	cd servlet; make -f ../util/makefile all

JPython:  
	cd python; make -f ../util/makefile all


# JPyConsole.jar: python/Console.py python/Keymap.py python/Styles.py python/Action.py 
#	cd python; jythonc  Console.py Keymap.py Styles.py Action.py
#	cd python/jpywork; jar cvf JPyConsole.jar *.class; mv JPyConsole.jar ../..; 
#	cp JPyConsole.jar ../lib   
#	cd ..; jythonc -p miiee.python -w "."  \
#	miiee/python/Console.py miiee/python/Action.py miiee/python/Keymap.py miiee/python/Styles.py

serv:
	cd Servlets; make -f ../util/makefile all
	cd Applets; make -f ../util/makefile all

j3d: 
	cd landscape; make -f ../util/makefile all

mod: 
	cd mod; make -f ../util/makefile all

VISAD: 
	cd visad; make -f ../util/makefile all

cog:
	cd globus; make -f cog


clean:
	cd util; make  -f ../util/makefile clean
	cd tree; make  -f ../util/makefile clean
	cd landscape; make -f ../util/makefile clean
	cd globus; make -f ../util/makefile clean
	cd dataview; make  -f ../util/makefile clean
	cd TGraph; make  -f ../util/makefile clean
	cd client; make  -f ../util/makefile clean
	cd xml; make  -f ../util/makefile clean
	cd mml; make  -f ../util/makefile clean
	cd wizard; make  -f ../util/makefile clean
	cd globus; make -f ../util/makefile clean
	cd Applets; make -f ../util/makefile clean
	cd servlet; make -f ../util/makefile clean
	cd visad; make -f ../util/makefile clean
	cd python; make -f ../util/makefile clean

util:
	cd util; make  -f ../util/makefile all

client_dir: tree
	cd client; make  -f ../util/makefile clean; make  -f ../util/makefile all

dataview:  util TGraph
	cd dataview;  -f ../util/makefile make all

TGraph:  util 
	cd TGraph;  -f ../util/makefile make all

landscape: util
	cd landscape; make -f ../util/makefile all

tree_dir: util
	cd tree; make -f ../util/makefile all

xml_dir: util
	cd xml; make -f ../util/makefile all
python_dir:
	cd python; make -f ../util/makefile all

mml_dir: util
	cd mml; make -f ../util/makefile all

wizard_dir: util
	cd wizard; make -f ../util/makefile all

servlet_dir:
	cd servlet; make -f ../util/makefile all

check_vpath:
	@echo "Sniff++ make"
			



