source: Makefile @ d1a7a90

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretchpitchshiftsamplertimestretchyinfft+
Last change on this file since d1a7a90 was d1a7a90, checked in by Paul Brossier <piem@piem.org>, 4 years ago

Makefile: use pip install --user, also uninstall

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