Only install opus_*.3 manpages. Fixes 'make distcheck'.
[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             $(top_srcdir)/doc/header.html \
9             $(top_srcdir)/doc/footer.html \
10             $(top_srcdir)/doc/customdoxygen.css
11
12 EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html opus_logo.svg
13
14
15 if HAVE_DOXYGEN
16
17 all-local: doxygen-build.stamp
18
19 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
20         doxygen
21         touch $@
22
23 install-data-local:
24         for f in `find html -type f \! -name "installdox"`; do  \
25                 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
26         done
27
28         $(INSTALL) -d $(DESTDIR)$(mandir)/man3
29         cd man && find man3 -type f -name opus_*.3 \
30                   -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
31
32 clean-local:
33         $(RM) -r html
34         $(RM) -r latex
35         $(RM) -r man
36         $(RM) doxygen-build.stamp
37
38 uninstall-local:
39         $(RM) -r $(DESTDIR)$(docdir)/html
40         $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
41
42 endif