Remove 'export' from the NO_DOXYGEN Makefile variable.
[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 # Targets to build and install just the library without the docs
38 opusfile install-opusfile: NO_DOXYGEN = 1
39
40 opusfile: all
41 install-opusfile: install
42
43 # Or just the docs
44 docs: doc/doxygen-build.stamp
45
46 install-docs:
47         @if [ -z "$(NO_DOXYGEN)" ]; then \
48           ( cd doc && \
49             echo "Installing documentation in $(DESTDIR)$(docdir)"; \
50             for f in `find html -type f \! -name "installdox"` ; do \
51               $(INSTALL) -d $(DESTDIR)$(docdir)/html/search;   \
52               $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f;     \
53             done ) \
54         fi
55
56 doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
57                          $(top_srcdir)/include/*.h
58         @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && doxygen && touch $(@F) )
59
60
61 if HAVE_DOXYGEN
62
63 # Or everything (by default)
64 all-local: docs
65
66 install-data-local: install-docs
67
68 clean-local:
69         $(RM) -r doc/html
70         $(RM) -r doc/latex
71         $(RM) doc/doxygen-build.stamp
72
73 uninstall-local:
74         $(RM) -r $(DESTDIR)$(docdir)/html
75
76 endif
77
78 .PHONY: opusfile install-opusfile docs install-docs