source: Makefile @ 95e0336

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 95e0336 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
RevLine 
[81ad577]1WAFCMD=python waf
[6a6cb48]2
3ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
4
[8e94af5]5all: build
6
7checkwaf:
8        @[ -f waf ] || make getwaf
9
10getwaf:
[edb1d7a]11        curl https://waf.io/waf-1.8.20 > waf
[81ad577]12        @chmod +x waf
13
14expandwaf:
[8e94af5]15        @[ -d wafilb ] || rm -fr waflib
[81ad577]16        @$(WAFCMD) --help > /dev/null
[0e39e88]17        @mv .waf*/waflib . && rm -fr .waf*
[6121dd4]18        @sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf
[8e94af5]19        @chmod +x waf
20
[e372a0f]21configure: checkwaf
[6a6cb48]22        $(WAFCMD) configure $(WAFOPTS) $(ENABLE_DOUBLE)
[e372a0f]23
24build: configure
[3fc5696]25        $(WAFCMD) build $(WAFOPTS)
[8e94af5]26
[972a326]27build_python:
[6a6cb48]28        cd python && python ./setup.py generate $(ENABLE_DOUBLE) build
[972a326]29
[69212a0]30test_python:
[39122f0]31        cd python && pip install -v .
[597a789]32        LD_LIBRARY_PATH=$(PWD)/build/src python/tests/run_all_tests --verbose
[39122f0]33        cd python && pip uninstall -y -v aubio
34
35test_python_osx:
[d1a7a90]36        cd python && pip install --user -v .
[b099f50]37        [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib ) || true
[597a789]38        ./python/tests/run_all_tests --verbose
[d1a7a90]39        cd python && pip uninstall -y -v aubio
[69212a0]40
[972a326]41clean_python:
42        cd python && ./setup.py clean
43
[a2ae70a]44build_python3:
[6a6cb48]45        cd python && python3 ./setup.py generate $(ENABLE_DOUBLE) build
[a2ae70a]46
47clean_python3:
48        cd python && python3 ./setup.py clean
49
[ddd9861]50clean:
[81ad577]51        $(WAFCMD) clean
[ddd9861]52
[e372a0f]53distcheck: checkwaf
[81ad577]54        $(WAFCMD) distcheck
[8e94af5]55
56help:
[81ad577]57        $(WAFCMD) --help
Note: See TracBrowser for help on using the repository browser.