blob: 36065f69115d5a827ea1bfb1c31715f7cdba5075 [file] [log] [blame]
Ralph Giles35d4fb72011-09-06 23:18:00 -07001## Process this file with automake to produce Makefile.in
2
Jean-Marc Valin4923f3f2011-10-26 21:36:57 -04003DOCINPUTS = $(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
Ralph Giles35d4fb72011-09-06 23:18:00 -07007
Ralph Giles35d4fb72011-09-06 23:18:00 -07008EXTRA_DIST = Doxyfile.in
9
Ronb2b03912012-05-21 23:14:50 +093010all-local: doxygen-build.stamp
11
12
Ralph Giles35d4fb72011-09-06 23:18:00 -070013if HAVE_DOXYGEN
14doxygen-build.stamp: Doxyfile $(DOCINPUTS)
15 doxygen
16 touch $@
Ronb2b03912012-05-21 23:14:50 +093017
18install-data-local:
19 for f in `find html -type f \! -name "installdox"`; do \
20 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
21 done
22
23 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
24 cd man && find man3 -type f \
25 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
Ralph Giles35d4fb72011-09-06 23:18:00 -070026else
27doxygen-build.stamp: Doxyfile $(DOCINPUTS)
28 @echo "*** Warning: Doxygen not found; API documentation will not be built."
29 touch $@
30endif
Ralph Giles09767572011-09-07 11:18:23 -070031
Ronb2b03912012-05-21 23:14:50 +093032
Ralph Giles09767572011-09-07 11:18:23 -070033# delete doxygen subdirs
34clean-local:
Ronb2b03912012-05-21 23:14:50 +093035 $(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