
goal: webCDcreator.jar

%.class: %.java
	javac $<

webCDcreator.jar: \
	BurnDialog.class \
	BurnSession.class \
	CDcreator.class \
	CloseSession.class \
	Command.class \
	CommandError.class \
	Config.class \
	Connect.class \
	DirTreeNode.class \
	HelpWin.class \
	MainWin.class \
	Messages_de_DE.properties \
	Messages_en_US.properties \
	NewSession.class \
	OpenSession.class \
	OptionsDialog.class \
	ProtocolWin.class \
	PutDialog.class \
	PutFiles.class \
	PutTracks.class \
	QueueDialog.class \
	SecFile.class \
	SessionSizeView.class \
	Version.class
	jar cf webCDcreator.jar *.class *.properties doc/ icons/ \
		netscape/security/*.class

test: webCDcreator.jar
	java CDcreator server=localhost port=10000

4netscape: webCDcreator.jar
	rm /tmp/webCDcreator/ -rf
	mkdir -p /tmp/webCDcreator
	cp -a *.class *.properties doc/ icons/ /tmp/webCDcreator/
	signtool -k "${certificate}" \
		-Z 4netscape/webCDcreator.jar /tmp/webCDcreator/
	rm /tmp/webCDcreator/ -rf

4plugin: webCDcreator.jar
	jarsigner -signedjar 4plugin/webCDcreator.jar \
		webCDcreator.jar ${certificate}

clean:
	rm -f *~ *.o *.so *.class .nfs* core doc/*~
	make -C netscape/security clean
	make -C 4netscape clean
	make -C 4plugin clean

maintainer-clean: clean
	rm -f *.jar *.zip

