#!/usr/bin/make -f
include ../subdir-inc.make


OUT_PREFIX := libfossil-API-
clean-doxy:
	-rm -fr $(OUT_PREFIX)*

DISTCLEAN_FILES += Doxygen
clean: clean-doxy

Doxyfile: Doxyfile.in
	@echo "ERROR: need to reconfigure to create Doxyfile!"; \
	exit 1

doc doxy: Doxyfile
	@echo "Generating API docs..."
	@doxygen
	@echo "Output is in: "; ls -1td $(OUT_PREFIX)*

all:
	@echo "Run 'make doc' to generate the API docs with doxygen."

ifneq (,$(WH))
upload:
	cd libfossil-API-html || exit $$?; \
	rsync -rzq -e ssh --delete . $(WH):www.f/repos/libfossil/doxygen/
endif
