merge with aubio-mfcc branch, adding filterbank and mfcc first draft. thank you Amaury
[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 endif
11
12 SUBDIRS = src ext examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(DOC)
13 EXTRA_DIST = bootstrap VERSION
14
15 docs:
16         cd doc && make update-docs && cd ..
17
18 doc-devel:
19         cd doc && make doc-devel && cd ..
20
21 doc-user:
22         cd doc && make doc-user && cd ..
23
24 doc-examples:
25         cd doc && make doc-examples && cd ..
26
27 install-pkgconfig:
28         $(mkinstalldirs) "$(DESTDIR)$(libdir)/pkgconfig"
29         $(INSTALL_DATA) aubio.pc "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
30
31 uninstall-pkgconfig:
32         $(RM) "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
33         -rmdir "$(DESTDIR)$(libdir)/pkgconfig"
34
35 install-data-hook: install-pkgconfig
36 uninstall-hook: uninstall-pkgconfig
37
38 lcov: all
39         mkdir -p $(top_builddir)/lcov
40         lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --zerocounters
41         cd tests/python && ./run_all_tests -v || echo "some tests failed"
42         lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --capture
43         genhtml --output-directory $(top_builddir)/lcov $(top_builddir)/lcov/aubio.info