blob: 11edd159aca512229b3d2ff073d55e7dd22a7c09 [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 \
Gregory Maxwell1f65ce82012-06-10 21:15:02 -04006 $(top_srcdir)/include/opus_types.h \
7 $(top_srcdir)/include/opus_custom.h
Ralph Giles35d4fb72011-09-06 23:18:00 -07008
Ralph Giles35d4fb72011-09-06 23:18:00 -07009EXTRA_DIST = Doxyfile.in
10
Ronb2b03912012-05-21 23:14:50 +093011all-local: doxygen-build.stamp
12
13
Ralph Giles35d4fb72011-09-06 23:18:00 -070014if HAVE_DOXYGEN
15doxygen-build.stamp: Doxyfile $(DOCINPUTS)
16 doxygen
17 touch $@
Ronb2b03912012-05-21 23:14:50 +093018
19install-data-local:
20 for f in `find html -type f \! -name "installdox"`; do \
21 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
22 done
23
24 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
25 cd man && find man3 -type f \
26 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
Ralph Giles35d4fb72011-09-06 23:18:00 -070027else
28doxygen-build.stamp: Doxyfile $(DOCINPUTS)
29 @echo "*** Warning: Doxygen not found; API documentation will not be built."
30 touch $@
31endif
Ralph Giles09767572011-09-07 11:18:23 -070032
Ronb2b03912012-05-21 23:14:50 +093033
Ralph Giles09767572011-09-07 11:18:23 -070034# delete doxygen subdirs
35clean-local:
Ronb2b03912012-05-21 23:14:50 +093036 $(RM) -r html
37 $(RM) -r latex
38 $(RM) -r man
39 $(RM) doxygen-build.stamp
40
41uninstall-local:
42 $(RM) -r $(DESTDIR)$(docdir)/html
43 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3