
SUBDIRS = \
  xml
DIST_SUBDIRS = $(SUBDIRS) design

EXTRA_DIST = \
  README \
  TODO-schedxactions \
  TODO-sixtp \
  backup.txt \
  books.txt \
  budget.txt \
  callgrind.txt \
  constderv.html \
  currencies.txt \
  doxygen.cfg.in \
  doxygen_main_page.c \
  finderv.html \
  finutil.html \
  generic-druid-framework.txt \
  guid.txt \
  loans.txt \
  lots.txt \
  multicurrency-discussion.txt \
  qif.txt \
  tax.txt \
  user-prefs-howto.txt \
  python-bindings-doxygen.py


all:

doc: doxygen.cfg
	@echo "doc: " $$(pwd) && echo "distdir: " $$(echo $(distdir))
	rm -rf html refman.pdf
	$(DOXYGEN) doxygen.cfg
#	$(MAKE) -C latex/ 
#	mv latex/refman.pdf ./refman.pdf

distclean-local:
	echo "distclean-local: " && pwd
	rm -f doxygen.cfg doxygen.log

maintainer-clean-local:
	echo "maintainer-clean-local: " && pwd
	rm -rf html latex
	rm -f refman.pdf

uninstall-hook:
	rm -rf ${docdir}/html

## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@.  This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions.
doxygen.cfg: doxygen.cfg.in Makefile
	rm -f $@.tmp
	sed < $< > $@.tmp \
            -e 's:@-top_srcdir-@:${top_srcdir}:g; s:@-VERSION-@:${VERSION}:g'
	mv $@.tmp $@

