fix seek bug with ogg flac and small streams (SF#1792172: http://sourceforge.net...
[platform/upstream/flac.git] / doc / Makefile.am
index 0400ea4..19a9db0 100644 (file)
@@ -1,5 +1,5 @@
 #  flac - Command-line FLAC encoder/decoder
-#  Copyright (C) 2002  Josh Coalson
+#  Copyright (C) 2002,2003,2004,2005,2006,2007  Josh Coalson
 #
 #  This program is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU General Public License
@@ -19,18 +19,25 @@ AUTOMAKE_OPTIONS = foreign
 
 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 = \
        FLAC.tag
 
-EXTRA_DIST = Doxyfile Makefile.lite $(doc_DATA)
+EXTRA_DIST = Doxyfile Makefile.lite doxygen.footer.html doxygen.header.html $(doc_DATA)
 
-clean-local:
+maintainer-clean-local:
        rm -rf FLAC.tag html/api doxytmp