############################################################
# $Id: Makefile 4165 2011-03-28 13:10:33Z bangerth $
# Mods by AJS to make it work
############################################################

DEAL_DIR=../../../deal.II/
D = $(DEAL_DIR)
include $D/common/Make.global_options


ewod-files = $(shell echo ../include/*.h)


all: ewod.tag

ewod.tag: $(ewod-files) options.dox Makefile
	@if test ! -x "`which doxygen`" ; then \
	  echo "-----------------------------------------" ; \
	  echo "Can't find 'doxygen'." ; \
	  echo "-----------------------------------------" ; \
	  false ; \
	 fi
	@echo "===== ewod =================== Generating documentation"
	@echo '@INCLUDE = options.dox'                                > ewod.dox
	@echo 'INCLUDE_PATH           = $D/include/deal.II'          >> ewod.dox
	@echo 'PROJECT_NAME = "Electrowetting on dielectric"'  >> ewod.dox
	@echo 'INPUT = $(ewod-files)'                              >> ewod.dox
	@echo 'HTML_OUTPUT      = doxygen'                           >> ewod.dox
	@echo 'GENERATE_TAGFILE = $@'                                >> ewod.dox
	@doxygen ewod.dox || echo "Running doxygen to generate documentation failed."

clean:
	-rm -f ewod.dox ewod.tag
	-rm -rf doxygen
