test_opus_api: Fix valgrind expectations broken by last commit.
[opus.git] / doc / Makefile.am
index bd7eba3..e38e879 100644 (file)
@@ -1,27 +1,42 @@
 ## Process this file with automake to produce Makefile.in
 
-DOCINPUTS = $(top_srcdir)/src/opus.h \
-            $(top_srcdir)/src/opus_multistream.h \
-            $(top_srcdir)/celt/opus_defines.h \
-            $(top_srcdir)/celt/opus_types.h
+DOCINPUTS = $(top_srcdir)/include/opus.h \
+            $(top_srcdir)/include/opus_multistream.h \
+            $(top_srcdir)/include/opus_defines.h \
+            $(top_srcdir)/include/opus_types.h \
+            $(top_srcdir)/include/opus_custom.h \
+            $(top_srcdir)/doc/header.html \
+            $(top_srcdir)/doc/footer.html \
+            $(top_srcdir)/doc/customdoxygen.css
 
-doc_DATA = doxygen-build.stamp
+EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html opus_logo.svg
 
-EXTRA_DIST = Doxyfile.in
 
 if HAVE_DOXYGEN
+
+all-local: doxygen-build.stamp
+
 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
        doxygen
        touch $@
-else
-doxygen-build.stamp: Doxyfile $(DOCINPUTS)
-       @echo "*** Warning: Doxygen not found; API documentation will not be built."
-       touch $@
-endif
 
-# delete doxygen subdirs
+install-data-local:
+       for f in `find html -type f \! -name "installdox"`; do  \
+               $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
+       done
+
+       $(INSTALL) -d $(DESTDIR)$(mandir)/man3
+       cd man && find man3 -type f \
+                 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
+
 clean-local:
-       -rm -rf html
-       -rm -rf latex
-       -rm -rf man
-       -rm doxygen-build.stamp
+       $(RM) -r html
+       $(RM) -r latex
+       $(RM) -r man
+       $(RM) doxygen-build.stamp
+
+uninstall-local:
+       $(RM) -r $(DESTDIR)$(docdir)/html
+       $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
+
+endif