Documentation updates.
[opusfile.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)
4
5 dist_doc_DATA = COPYING AUTHORS README.txt
6
7 include_HEADERS = include/opusfile.h
8
9 lib_LTLIBRARIES = libopusfile.la
10 libopusfile_la_SOURCES = \
11         src/http.c src/info.c \
12         src/internal.c src/internal.h \
13         src/opusfile.c src/stream.c
14 libopusfile_la_LIBADD = $(DEPS_LIBS)
15 libopusfile_la_LDFLAGS = -no-undefined \
16  -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@
17
18 noinst_PROGRAMS = examples/opusfile_example examples/seeking_example
19
20 examples_opusfile_example_LDADD = libopusfile.la
21 examples_seeking_example_LDADD = libopusfile.la
22
23 debug:
24         $(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOP_ENABLE_ASSERTIONS" all
25
26 #API Documentation
27
28 if HAVE_DOXYGEN
29
30 EXTRA_DIST = doc/Doxyfile.in doc/opus_logo.svg
31
32 all-local: doc/doxygen-build.stamp
33
34 doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
35  $(top_srcdir)/include/*.h
36         cd doc && doxygen
37         touch "$@"
38
39 install-data-local:
40         cd doc && for f in `find html -type f \! -name "installdox"` ; do \
41           $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f ; \
42         done
43
44 clean-local:
45         $(RM) -r doc/html
46         $(RM) -r doc/latex
47         $(RM) doc/doxygen-build.stamp
48
49 uninstall-local:
50         $(RM) -r $(DESTDIR)$(docdir)/html
51
52 endif