Ralph Giles | 35d4fb7 | 2011-09-06 23:18:00 -0700 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 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 |
Ralph Giles | 35d4fb7 | 2011-09-06 23:18:00 -0700 | [diff] [blame] | 7 | |
Ralph Giles | 35d4fb7 | 2011-09-06 23:18:00 -0700 | [diff] [blame] | 8 | EXTRA_DIST = Doxyfile.in |
| 9 | |
Ron | b2b0391 | 2012-05-21 23:14:50 +0930 | [diff] [blame] | 10 | all-local: doxygen-build.stamp |
| 11 | |
| 12 | |
Ralph Giles | 35d4fb7 | 2011-09-06 23:18:00 -0700 | [diff] [blame] | 13 | if HAVE_DOXYGEN |
| 14 | doxygen-build.stamp: Doxyfile $(DOCINPUTS) |
| 15 | doxygen |
| 16 | touch $@ |
Ron | b2b0391 | 2012-05-21 23:14:50 +0930 | [diff] [blame] | 17 | |
| 18 | install-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 Giles | 35d4fb7 | 2011-09-06 23:18:00 -0700 | [diff] [blame] | 26 | else |
| 27 | doxygen-build.stamp: Doxyfile $(DOCINPUTS) |
| 28 | @echo "*** Warning: Doxygen not found; API documentation will not be built." |
| 29 | touch $@ |
| 30 | endif |
Ralph Giles | 0976757 | 2011-09-07 11:18:23 -0700 | [diff] [blame] | 31 | |
Ron | b2b0391 | 2012-05-21 23:14:50 +0930 | [diff] [blame] | 32 | |
Ralph Giles | 0976757 | 2011-09-07 11:18:23 -0700 | [diff] [blame] | 33 | # delete doxygen subdirs |
| 34 | clean-local: |
Ron | b2b0391 | 2012-05-21 23:14:50 +0930 | [diff] [blame] | 35 | $(RM) -r html |
| 36 | $(RM) -r latex |
| 37 | $(RM) -r man |
| 38 | $(RM) doxygen-build.stamp |
| 39 | |
| 40 | uninstall-local: |
| 41 | $(RM) -r $(DESTDIR)$(docdir)/html |
| 42 | $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3 |