Changeset f264b17 for Makefile


Ignore:
Timestamp:
Jun 22, 2016, 1:00:10 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
4b9443c4
Parents:
60fc05b (diff), 6769586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r60fc05b rf264b17  
     1WAFCMD=python waf
     2
     3SOX=sox
     4
     5ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
     6TESTSOUNDS := python/tests/sounds
     7
    18all: build
    29
     
    512
    613getwaf:
    7         curl https://waf.io/waf-1.8.12 > waf
     14        curl https://waf.io/waf-1.8.20 > waf
     15        @chmod +x waf
     16
     17expandwaf:
    818        @[ -d wafilb ] || rm -fr waflib
    9         @chmod +x waf && ./waf --help > /dev/null
    10         @mv .waf*/waflib . && rm -fr .waf-*
     19        @$(WAFCMD) --help > /dev/null
     20        @mv .waf*/waflib . && rm -fr .waf*
    1121        @sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf
    1222        @chmod +x waf
    1323
    14 build: checkwaf
    15         ./waf configure
    16         ./waf build
     24configure: checkwaf
     25        $(WAFCMD) configure $(WAFOPTS) $(ENABLE_DOUBLE)
     26
     27build: configure
     28        $(WAFCMD) build $(WAFOPTS)
    1729
    1830build_python:
    19         cd python && ./setup.py build
     31        python ./setup.py generate $(ENABLE_DOUBLE) build
     32
     33test_python: export LD_LIBRARY_PATH=$(PWD)/build/src
     34test_python:
     35        pip install -v -r requirements.txt
     36        pip install -v .
     37        nose2 --verbose
     38        pip uninstall -y -v aubio
     39
     40test_python_osx:
     41        # create links from ~/lib/lib* to build/src/lib*
     42        [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib ) || true
     43        # then run the tests
     44        pip install --user -v -r requirements.txt
     45        pip install --user -v .
     46        nose2 --verbose
     47        pip uninstall -y -v aubio
    2048
    2149clean_python:
    22         cd python && ./setup.py clean
     50        ./setup.py clean
     51
     52test_pure_python:
     53        -pip uninstall -v -y aubio
     54        -rm -rf build/ python/gen/
     55        -rm -f dist/*.egg
     56        -pip install -v -r requirements.txt
     57        CFLAGS=-Os python setup.py bdist_egg
     58        [ "$(TRAVIS_OS_NAME)" == "osx" ] && easy_install --user dist/*.egg || \
     59                easy_install dist/*.egg
     60        nose2 -N 4
     61        pip uninstall -v -y aubio
     62
     63test_pure_python_wheel:
     64        -pip uninstall -v -y aubio
     65        -rm -rf build/ python/gen/
     66        -rm -f dist/*.whl
     67        -pip install -v -r requirements.txt
     68        -pip install -v wheel
     69        CFLAGS=-Os python setup.py bdist_wheel --universal
     70        wheel install dist/*.whl
     71        nose2 -N 4
     72        pip uninstall -v -y aubio
     73
     74build_python3:
     75        python3 ./setup.py generate $(ENABLE_DOUBLE) build
     76
     77clean_python3:
     78        python3 ./setup.py clean
    2379
    2480clean:
    25         ./waf clean
     81        $(WAFCMD) clean
    2682
    27 distcheck: build
    28         ./waf distcheck
     83distcheck: checkwaf
     84        $(WAFCMD) distcheck $(WAFOPTS) $(ENABLE_DOUBLE)
    2985
    3086help:
    31         ./waf --help
     87        $(WAFCMD) --help
     88
     89create_test_sounds:
     90        -[ -z `which $(SOX)` ] && ( echo $(SOX) could not be found) || true
     91        -mkdir -p $(TESTSOUNDS)
     92        -$(SOX) -r 44100 -b 16 -n "$(TESTSOUNDS)/44100Hz_1f_silence.wav"      synth 1s   silence 0
     93        -$(SOX) -r 22050 -b 16 -n "$(TESTSOUNDS)/22050Hz_5s_brownnoise.wav"   synth 5    brownnoise      vol 0.9
     94        -$(SOX) -r 32000 -b 16 -n "$(TESTSOUNDS)/32000Hz_127f_sine440.wav"    synth 127s sine 440        vol 0.9
     95        -$(SOX) -r  8000 -b 16 -n "$(TESTSOUNDS)/8000Hz_30s_silence.wav"      synth 30   silence 0       vol 0.9
     96        -$(SOX) -r 48000 -b 32 -n "$(TESTSOUNDS)/48000Hz_60s_sweep.wav"       synth 60   sine 100-20000  vol 0.9
Note: See TracChangeset for help on using the changeset viewer.