CLASSES=			\
	Kali			\
	Constants		\
	DrawPanel		\
	ControlPanel		\
	KaliCanvas		\
	SymmetryGroups		\
	Panorama		\
	DVector			\
	ImageButton		\
	ImageButtonGroup

CLASSFILES=${CLASSES:=.class}
HTMLFILES=${CLASSES:=.html}

program:	${CLASSFILES}

all:	program doc distribution

doc:	${HTMLFILES} source.html
	/bin/rm -f packages.html AllNames.html
	fixhrefs *.html
	fixhtml

dist:	distribution
distribution:	tardist zipdist

tardist:	_always
	makedist tar

zipdist:	_always
	makedist zip

source.html:	_always
	makesourcehtml source.html Kali

stable:		_always tardist
	/bin/rm -r -f ../Kali.stable
	mkdir ../Kali.stable
	(cd ../Kali.stable ; gnutar xvfZ ../Kali/javakali.tar.Z)

_always:

.SUFFIXES:	.java .class .html

.java.class:
	javac -g $<

.java.html:
	javadoc -noindex -notree $<

clean:
	/bin/rm -f *~ *old*

tclean:
	/bin/rm -f *~ *.class *old*
