Move the extra EXTRA_DIST out of HAVE_DOXYGEN
[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
37 #API Documentation
38
39 if HAVE_DOXYGEN
40
41 all-local: doc/doxygen-build.stamp
42
43 doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
44  $(top_srcdir)/include/*.h
45         cd doc && doxygen
46         touch "$@"
47
48 install-data-local:
49         cd doc && for f in `find html -type f \! -name "installdox"` ; do \
50          $(INSTALL) -d $(DESTDIR)$(docdir)/html/search;   \
51          $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f;     \
52         done
53
54 clean-local:
55         $(RM) -r doc/html
56         $(RM) -r doc/latex
57         $(RM) doc/doxygen-build.stamp
58
59 uninstall-local:
60         $(RM) -r $(DESTDIR)$(docdir)/html
61
62 endif