
include ../../config

all: Policy.class webCDcreator.jar

Policy.class: Policy.java
	javac Policy.java

webCDcreator.jar:
	@echo
	@echo "webCDcreator.jar is missing"
	@echo "You can get it from webCDwriter-<version>-signed.tgz"
	@echo
	exit 1

install: all
	install -d -m 755 ${INSTDIR}/
	rm -f ${INSTDIR}/{doc,i18n,icons}
	ln -s ../doc ${INSTDIR}/doc
	ln -s ../i18n ${INSTDIR}/i18n
	ln -s ../icons ${INSTDIR}/icons
	$(INSTALL) -m 644 \
		Policy.java java.policy jhaeger.x509 policy.html \
		Policy.class webCDcreator.jar \
		${INSTDIR}/
	$(INSTALL) -m 644 start.html ${INSTDIR}/index.html

clean:
	rm -f *~ .nfs* core .directory

maintainer-clean: clean
	rm -f *.class webCDcreator.jar
