src/pitch/pitchschmitt.c: indent
[aubio.git] / Makefile.am
1 if DOCBOOKFOUND
2 DOC = doc
3 endif
4
5 if SWIGFOUND
6 SWIGDIR = swig
7 if PYTHONFOUND
8 PYTHONDIR = python
9 endif
10 if JAVAFOUND
11 JAVADIR = interfaces/java
12 endif
13 endif
14
15
16 SUBDIRS = src examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(JAVADIR) $(DOC) tests
17 EXTRA_DIST = bootstrap VERSION
18
19 docs:
20         cd doc && make update-docs && cd ..
21
22 doc-devel:
23         cd doc && make doc-devel && cd ..
24
25 doc-user:
26         cd doc && make doc-user && cd ..
27
28 doc-examples:
29         cd doc && make doc-examples && cd ..
30
31 install-pkgconfig:
32         $(mkinstalldirs) "$(DESTDIR)$(libdir)/pkgconfig"
33         $(INSTALL_DATA) aubio.pc "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
34
35 uninstall-pkgconfig:
36         $(RM) "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
37         -rmdir "$(DESTDIR)$(libdir)/pkgconfig"
38
39 install-data-hook: install-pkgconfig
40 uninstall-hook: uninstall-pkgconfig
41
42 lcov: all
43         mkdir -p $(top_builddir)/lcov
44         lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --zerocounters
45         cd tests/python && ./run_all_tests -v || echo "some tests failed"
46         lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --capture
47         genhtml --output-directory $(top_builddir)/lcov $(top_builddir)/lcov/aubio.info