
INDEX_TEMPLATE = index-template.html
RM = @RM@
MV = @MV@
CP = @CP@
MKDIR = @MKDIR@


FILES = org *.html *.css package-list

dist-hook:
	${CP} -r ${FILES} ${distdir}

clean-generic:
	${RM} -f *~

distclean-generic:
	${MV} ${INDEX_TEMPLATE} ${INDEX_TEMPLATE}.protected
	${RM} -rf *.html
	${RM} -f *.css
	${MV} ${INDEX_TEMPLATE}.protected ${INDEX_TEMPLATE}
	${CP} ${INDEX_TEMPLATE} index.html

docdir = ${prefix}/docs/api

# Do we want to build the javadoc by default?
#all:
#	cd ../.. ; ${MAKE} javadoc

install-data-local:
	@ if ${TEST} -d org; then \
		echo ""; \
		echo "Installing Javadoc in ${DESTDIR}${docdir}..."; \
		echo ""; \
		${mkinstalldirs} ${DESTDIR}${docdir}; \
		${CP} -r ${FILES} ${DESTDIR}${docdir}; \
	else \
		echo "You received this message for one of two reasons:"; \
		echo ""; \
		echo "1. You have not built the javadoc yet. Run make javadoc"; \
		echo "   from the top level Apache JServ distribution."; \
		echo "2. You are not using JDK 1.2 or higher to build the javadoc."; \
		echo "   Install JDK 1.2 or higher."; \
		echo ""; \
	fi
