Fix doxygen docs wrt OPUS_WARN_UNUSED_RESULT and OPUS_ARG_NONNULL.
[opus.git] / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 DOCINPUTS = $(top_srcdir)/include/opus.h \
4             $(top_srcdir)/include/opus_multistream.h \
5             $(top_srcdir)/include/opus_defines.h \
6             $(top_srcdir)/include/opus_types.h
7
8 EXTRA_DIST = Doxyfile.in
9
10 all-local: doxygen-build.stamp
11
12
13 if HAVE_DOXYGEN
14 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
15         doxygen
16         touch $@
17
18 install-data-local:
19         for f in `find html -type f \! -name "installdox"`; do  \
20                 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
21         done
22
23         $(INSTALL) -d $(DESTDIR)$(mandir)/man3
24         cd man && find man3 -type f \
25                   -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
26 else
27 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
28         @echo "*** Warning: Doxygen not found; API documentation will not be built."
29         touch $@
30 endif
31
32
33 # delete doxygen subdirs
34 clean-local:
35         $(RM) -r html
36         $(RM) -r latex
37         $(RM) -r man
38         $(RM) doxygen-build.stamp
39
40 uninstall-local:
41         $(RM) -r $(DESTDIR)$(docdir)/html
42         $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3