11edd159aca512229b3d2ff073d55e7dd22a7c09
[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             $(top_srcdir)/include/opus_custom.h
8
9 EXTRA_DIST = Doxyfile.in
10
11 all-local: doxygen-build.stamp
12
13
14 if HAVE_DOXYGEN
15 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
16         doxygen
17         touch $@
18
19 install-data-local:
20         for f in `find html -type f \! -name "installdox"`; do  \
21                 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
22         done
23
24         $(INSTALL) -d $(DESTDIR)$(mandir)/man3
25         cd man && find man3 -type f \
26                   -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
27 else
28 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
29         @echo "*** Warning: Doxygen not found; API documentation will not be built."
30         touch $@
31 endif
32
33
34 # delete doxygen subdirs
35 clean-local:
36         $(RM) -r html
37         $(RM) -r latex
38         $(RM) -r man
39         $(RM) doxygen-build.stamp
40
41 uninstall-local:
42         $(RM) -r $(DESTDIR)$(docdir)/html
43         $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3