blob: 31fddab49f985ecdd346ad3300be1d18a9d183f5 [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
Jean-Marc Valin1bf1da32013-11-21 14:36:41 -050012EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \
13 opus_logo.svg trivial_example.c
Ralph Giles35d4fb72011-09-06 23:18:00 -070014
Ronb2b03912012-05-21 23:14:50 +093015
Ralph Giles35d4fb72011-09-06 23:18:00 -070016if HAVE_DOXYGEN
Ron783ecbf2012-05-23 15:15:19 +093017
18all-local: doxygen-build.stamp
19
Ralph Giles35d4fb72011-09-06 23:18:00 -070020doxygen-build.stamp: Doxyfile $(DOCINPUTS)
21 doxygen
22 touch $@
Ronb2b03912012-05-21 23:14:50 +093023
24install-data-local:
Ron3e6691a2013-05-12 14:32:52 +093025 $(INSTALL) -d $(DESTDIR)$(docdir)/html/search
Ronb2b03912012-05-21 23:14:50 +093026 for f in `find html -type f \! -name "installdox"`; do \
Hanspeter Niederstrasserca828942012-09-26 19:36:57 -040027 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
Ronb2b03912012-05-21 23:14:50 +093028 done
29
30 $(INSTALL) -d $(DESTDIR)$(mandir)/man3
Ralph Giles0e232492012-08-10 14:42:00 -070031 cd man && find man3 -type f -name opus_*.3 \
Ronb2b03912012-05-21 23:14:50 +093032 -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
Ralph Giles09767572011-09-07 11:18:23 -070033
Ralph Giles09767572011-09-07 11:18:23 -070034clean-local:
Ronb2b03912012-05-21 23:14:50 +093035 $(RM) -r html
36 $(RM) -r latex
37 $(RM) -r man
38 $(RM) doxygen-build.stamp
Ricardo Constantino (:RiCON)165e11c2016-05-18 20:58:58 +010039 $(RM) doxygen_sqlite3.db
Ronb2b03912012-05-21 23:14:50 +093040
41uninstall-local:
42 $(RM) -r $(DESTDIR)$(docdir)/html
43 $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
Ron783ecbf2012-05-23 15:15:19 +093044
45endif