
${CONSTITUENT}javadirs ::
	@if not exist $(javabin)${CONSTITUENT} mkdir $(javabin)${CONSTITUENT}

${CONSTITUENT} :: ${CONSTITUENT}javadirs $(javabin)${CONSTITUENT}.jar
	@echo "------> ${CONSTITUENT} ok"

$(javabin)${CONSTITUENT}.jar :: ${OBJS}
	$(java_echo) $@
	$(java_silent)cd $(javabin)${CONSTITUENT}
	$(java_silent)echo Main-Class: ${CONSTITUENT} > ${CONSTITUENT}.jmf
	$(java_silent)jar -cmvf ${CONSTITUENT}.jmf ../${CONSTITUENT}.jar *

install_dir = $(CMTINSTALLAREA)\share\bin
${CONSTITUENT}installname = ${CONSTITUENT}.jar

${CONSTITUENT} :: ${CONSTITUENT}install

install :: ${CONSTITUENT}install

${CONSTITUENT}install :: $(install_dir)\$(${CONSTITUENT}installname)
	@if NOT "$(CMTINSTALLAREA)"=="" echo "installation done"

$(install_dir)\$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname)
	@if NOT "$(CMTINSTALLAREA)"=="" $(cmt_install_action) "$(PACKAGE_ROOT)\classes" "$(${CONSTITUENT}installname)" "$(install_dir)"

${CONSTITUENT}clean :: ${CONSTITUENT}uninstall

uninstall :: ${CONSTITUENT}uninstall

${CONSTITUENT}uninstall ::
	@if NOT "$(CMTINSTALLAREA)"=="" $(cmt_uninstall_action) "$(PACKAGE_ROOT)\classes" "$(${CONSTITUENT}installname)" "$(install_dir)"


${CONSTITUENT}clean ::
	if exist $(javabin)\${CONSTITUENT} rmdir /Q /S $(javabin)\${CONSTITUENT}
	if exist $(javabin)\${CONSTITUENT}.jar del $(javabin)\${CONSTITUENT}.jar
