added configure rules to check presence of swig, python,
[aubio.git] / Makefile.am
1 if DOCBOOKFOUND
2 DOC = doc
3 endif
4
5 if SWIGFOUND
6 if PYTHONFOUND
7 SWIGDIR = swig
8 PYTHONDIR = python
9 endif
10 endif
11
12 SUBDIRS = src ext examples doc sounds plugins $(PYTHONDIR) $(SWIGDIR) $(DOC)
13 EXTRA_DIST = bootstrap VERSION
14 DISTCLEANFILES = autom4te.cache
15
16 docs:
17         cd doc && make update-docs && cd ..
18
19 doc-devel:
20         cd doc && make doc-devel && cd ..
21
22 doc-user:
23         cd doc && make doc-user && cd ..
24
25 doc-examples:
26         cd doc && make doc-examples && cd ..
27
28 install-pkgconfig:
29         $(mkinstalldirs) "$(DESTDIR)$(libdir)/pkgconfig"
30         $(INSTALL_DATA) aubio.pc "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
31
32 uninstall-pkgconfig:
33         $(RM) "$(DESTDIR)$(libdir)/pkgconfig/aubio.pc"
34         -rmdir "$(DESTDIR)$(libdir)/pkgconfig"
35
36 install-data-hook: install-pkgconfig
37 uninstall-hook: uninstall-pkgconfig
38