only clean doxygen-generated files with maintainer-clean; warn during build if doxyge...
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 10 Jan 2003 04:38:44 +0000 (04:38 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 10 Jan 2003 04:38:44 +0000 (04:38 +0000)
doc/Makefile.am
doc/html/Makefile.am

index 1dd67dc..060d104 100644 (file)
@@ -19,11 +19,18 @@ 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)
 
@@ -32,5 +39,5 @@ doc_DATA = \
 
 EXTRA_DIST = Doxyfile Makefile.lite $(doc_DATA)
 
-clean-local:
+maintainer-clean-local:
        rm -rf FLAC.tag html/api doxytmp
index 1d4d790..69253a5 100644 (file)
@@ -42,5 +42,5 @@ install-data-local:
        (cd api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
 uninstall-local:
        rm -rf $(DESTDIR)$(docdir)/api
-clean-local:
+maintainer-clean-local:
        rm -rf api