# flac - Command-line FLAC encoder/decoder
-# Copyright (C) 2002 Josh Coalson
+# Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
SUBDIRS = . html
+if FLaC__HAS_DOXYGEN
FLAC.tag: Doxyfile
doxygen Doxyfile
rm -rf html/api
mv doxytmp/html html/api
rm -rf doxytmp
+else
+FLAC.tag:
+ echo "*** Warning: Doxygen not found; documentation will not be built."
+ touch $@
+ mkdir -p html/api
+endif
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
-doc_DATA = \
+doc_DATA = \
FLAC.tag
-EXTRA_DIST = Doxyfile $(doc_DATA)
+EXTRA_DIST = Doxyfile Makefile.lite doxygen.footer.html doxygen.header.html $(doc_DATA)
+
+maintainer-clean-local:
+ rm -rf FLAC.tag html/api doxytmp