blob: ba6f64c7e825feaaf0e67f0044fccb7a1d046c45 [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
Ron9a89d562012-06-12 04:40:42 +093012EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html opus_logo.svg
Ralph Giles35d4fb72011-09-06 23:18:00 -070013
Ronb2b03912012-05-21 23:14:50 +093014
Ralph Giles35d4fb72011-09-06 23:18:00 -070015if HAVE_DOXYGEN
Ron783ecbf2012-05-23 15:15:19 +093016
17all-local: doxygen-build.stamp
18
Ralph Giles35d4fb72011-09-06 23:18:00 -070019doxygen-build.stamp: Doxyfile $(DOCINPUTS)
20 doxygen
21 touch $@
Ronb2b03912012-05-21 23:14:50 +093022
23install-data-local:
24 for f in `find html -type f \! -name "installdox"`; do \
25 $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f; \
26 done
27
28 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
Ralph Giles0e232492012-08-10 14:42:00 -070029 cd man && find man3 -type f -name opus_*.3 \
Ronb2b03912012-05-21 23:14:50 +093030 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
Ralph Giles09767572011-09-07 11:18:23 -070031
Ralph Giles09767572011-09-07 11:18:23 -070032clean-local:
Ronb2b03912012-05-21 23:14:50 +093033 $(RM) -r html
34 $(RM) -r latex
35 $(RM) -r man
36 $(RM) doxygen-build.stamp
37
38uninstall-local:
39 $(RM) -r $(DESTDIR)$(docdir)/html
40 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
Ron783ecbf2012-05-23 15:15:19 +093041
42endif