blob: 1c3406203a15a82309c63ba79af9d23a9af7d9c7 [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 \
Gregory Maxwell91b56f62012-06-11 13:33:35 -04007 $(top_srcdir)/include/opus_custom.h \
8 $(top_srcdir)/doc/header.html \
9 $(top_srcdir)/doc/footer.html \
10 $(top_srcdir)/doc/customdoxygen.css
Ralph Giles35d4fb72011-09-06 23:18:00 -070011
Gregory Maxwell91b56f62012-06-11 13:33:35 -040012EXTRA_DIST = Doxyfile.in opus_logo.svg
Ralph Giles35d4fb72011-09-06 23:18:00 -070013
Ronb2b03912012-05-21 23:14:50 +093014all-local: doxygen-build.stamp
15
16
Ralph Giles35d4fb72011-09-06 23:18:00 -070017if HAVE_DOXYGEN
18doxygen-build.stamp: Doxyfile $(DOCINPUTS)
19 doxygen
20 touch $@
Ronb2b03912012-05-21 23:14:50 +093021
22install-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 \;
Ralph Giles35d4fb72011-09-06 23:18:00 -070030else
31doxygen-build.stamp: Doxyfile $(DOCINPUTS)
32 @echo "*** Warning: Doxygen not found; API documentation will not be built."
33 touch $@
34endif
Ralph Giles09767572011-09-07 11:18:23 -070035
Ronb2b03912012-05-21 23:14:50 +093036
Ralph Giles09767572011-09-07 11:18:23 -070037# delete doxygen subdirs
38clean-local:
Ronb2b03912012-05-21 23:14:50 +093039 $(RM) -r html
40 $(RM) -r latex
41 $(RM) -r man
42 $(RM) doxygen-build.stamp
43
44uninstall-local:
45 $(RM) -r $(DESTDIR)$(docdir)/html
46 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3