source: Makefile @ 6a6cb48

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 6a6cb48 was 6a6cb48, checked in by Paul Brossier <piem@piem.org>, 8 years ago

Makefile: use 'HAVE_DOUBLE=1 make' to build in double precision

  • Property mode set to 100644
File size: 1.2 KB
Line 
1WAFCMD=python waf
2
3ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
4
5all: build
6
7checkwaf:
8        @[ -f waf ] || make getwaf
9
10getwaf:
11        curl https://waf.io/waf-1.8.20 > waf
12        @chmod +x waf
13
14expandwaf:
15        @[ -d wafilb ] || rm -fr waflib
16        @$(WAFCMD) --help > /dev/null
17        @mv .waf*/waflib . && rm -fr .waf*
18        @sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf
19        @chmod +x waf
20
21configure: checkwaf
22        $(WAFCMD) configure $(WAFOPTS) $(ENABLE_DOUBLE)
23
24build: configure
25        $(WAFCMD) build $(WAFOPTS)
26
27build_python:
28        cd python && python ./setup.py generate $(ENABLE_DOUBLE) build
29
30test_python:
31        cd python && pip install -v .
32        LD_LIBRARY_PATH=$(PWD)/build/src python/tests/run_all_tests --verbose
33        cd python && pip uninstall -y -v aubio
34
35test_python_osx:
36        cd python && pip install --user -v .
37        [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib ) || true
38        ./python/tests/run_all_tests --verbose
39        cd python && pip uninstall -y -v aubio
40
41clean_python:
42        cd python && ./setup.py clean
43
44build_python3:
45        cd python && python3 ./setup.py generate $(ENABLE_DOUBLE) build
46
47clean_python3:
48        cd python && python3 ./setup.py clean
49
50clean:
51        $(WAFCMD) clean
52
53distcheck: checkwaf
54        $(WAFCMD) distcheck
55
56help:
57        $(WAFCMD) --help
Note: See TracBrowser for help on using the repository browser.