Fix a comment typo.
[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 opusincludedir = ${includedir}/opus
8 opusinclude_HEADERS = include/opusfile.h
9
10 lib_LTLIBRARIES = libopusfile.la
11 libopusfile_la_SOURCES = \
12         src/http.c src/info.c \
13         src/internal.c src/internal.h \
14         src/opusfile.c src/stream.c
15 libopusfile_la_LIBADD = $(DEPS_LIBS)
16 libopusfile_la_LDFLAGS = -no-undefined \
17  -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@
18
19 noinst_PROGRAMS = examples/opusfile_example examples/seeking_example
20
21 examples_opusfile_example_LDADD = libopusfile.la
22 examples_seeking_example_LDADD = libopusfile.la
23
24 debug:
25         $(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOP_ENABLE_ASSERTIONS" all
26
27 pkgconfigdir = $(libdir)/pkgconfig
28 pkgconfig_DATA = opusfile.pc
29
30 EXTRA_DIST = \
31  opusfile.pc.in \
32  opusfile-uninstalled.pc.in \
33  doc/Doxyfile.in \
34  doc/git-version.sh \
35  doc/opus_logo.svg \
36  doc/Makefile \
37  unix/Makefile
38
39 # Targets to build and install just the library without the docs
40 opusfile install-opusfile: NO_DOXYGEN = 1
41
42 opusfile: all
43 install-opusfile: install
44
45 # Or just the docs
46 docs: doc/doxygen-build.stamp
47
48 install-docs:
49         @if [ -z "$(NO_DOXYGEN)" ]; then \
50           ( cd doc && \
51             echo "Installing documentation in $(DESTDIR)$(docdir)"; \
52             for f in `find html -type f \! -name "installdox"` ; do \
53               $(INSTALL) -d $(DESTDIR)$(docdir)/html/search;   \
54               $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f;     \
55             done ) \
56         fi
57
58 doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
59                          $(top_srcdir)/include/*.h
60         @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && doxygen && touch $(@F) )
61
62
63 if HAVE_DOXYGEN
64
65 # Or everything (by default)
66 all-local: docs
67
68 install-data-local: install-docs
69
70 clean-local:
71         $(RM) -r doc/html
72         $(RM) -r doc/latex
73         $(RM) doc/doxygen-build.stamp
74
75 uninstall-local:
76         $(RM) -r $(DESTDIR)$(docdir)/html
77
78 endif
79
80 .PHONY: opusfile install-opusfile docs install-docs