blob: 296c4dd8d4b3bd9b396fe281909725989c092dd1 [file] [log] [blame]
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001## Process this file with automake to produce Makefile.in
2
3DOCINPUTS = $(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 $(top_srcdir)/doc/header.html \
9 $(top_srcdir)/doc/footer.html \
10 $(top_srcdir)/doc/customdoxygen.css
11
12EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \
13 opus_logo.svg trivial_example.c
14
15
16if HAVE_DOXYGEN
17
18all-local: doxygen-build.stamp
19
20doxygen-build.stamp: Doxyfile $(DOCINPUTS)
21 doxygen
22 touch $@
23
24install-data-local:
25 $(INSTALL) -d $(DESTDIR)$(docdir)/html/search
26 for f in `find html -type f \! -name "installdox"`; do \
27 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
28 done
29
30 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
31 cd man && find man3 -type f -name opus_*.3 \
32 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
33
34clean-local:
35 $(RM) -r html
36 $(RM) -r latex
37 $(RM) -r man
38 $(RM) doxygen-build.stamp
39
40uninstall-local:
41 $(RM) -r $(DESTDIR)$(docdir)/html
42 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
43
44endif