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