blob: 02f3493185025daea0a66b6f7c0bb9ba3a1376bd [file] [log] [blame]
Alexandre Lision744f7422013-09-25 11:39:37 -04001## 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 opus_logo.svg
13
14
15if HAVE_DOXYGEN
16
17all-local: doxygen-build.stamp
18
19doxygen-build.stamp: Doxyfile $(DOCINPUTS)
20 doxygen
21 touch $@
22
23install-data-local:
24 $(INSTALL) -d $(DESTDIR)$(docdir)/html/search
25 for f in `find html -type f \! -name "installdox"`; do \
26 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
27 done
28
29 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
30 cd man && find man3 -type f -name opus_*.3 \
31 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
32
33clean-local:
34 $(RM) -r html
35 $(RM) -r latex
36 $(RM) -r man
37 $(RM) doxygen-build.stamp
38
39uninstall-local:
40 $(RM) -r $(DESTDIR)$(docdir)/html
41 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
42
43endif