source:
Makefile
@
d746ef8
Last change on this file since d746ef8 was 8dbff94, checked in by , 9 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[81ad577] | 1 | WAFCMD=python waf |
[8e94af5] | 2 | all: build |
3 | ||
4 | checkwaf: | |
5 | @[ -f waf ] || make getwaf | |
6 | ||
7 | getwaf: | |
[edb1d7a] | 8 | curl https://waf.io/waf-1.8.20 > waf |
[81ad577] | 9 | @chmod +x waf |
10 | ||
11 | expandwaf: | |
[8e94af5] | 12 | @[ -d wafilb ] || rm -fr waflib |
[81ad577] | 13 | @$(WAFCMD) --help > /dev/null |
[0e39e88] | 14 | @mv .waf*/waflib . && rm -fr .waf* |
[6121dd4] | 15 | @sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf |
[8e94af5] | 16 | @chmod +x waf |
17 | ||
[e372a0f] | 18 | configure: checkwaf |
19 | $(WAFCMD) configure | |
20 | ||
21 | build: configure | |
22 | $(WAFCMD) build | |
[8e94af5] | 23 | |
[972a326] | 24 | build_python: |
25 | cd python && ./setup.py build | |
26 | ||
[69212a0] | 27 | test_python: |
[39122f0] | 28 | cd python && pip install -v . |
[597a789] | 29 | LD_LIBRARY_PATH=$(PWD)/build/src python/tests/run_all_tests --verbose |
[39122f0] | 30 | cd python && pip uninstall -y -v aubio |
31 | ||
32 | test_python_osx: | |
[d1a7a90] | 33 | cd python && pip install --user -v . |
[b099f50] | 34 | [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib ) || true |
[597a789] | 35 | ./python/tests/run_all_tests --verbose |
[d1a7a90] | 36 | cd python && pip uninstall -y -v aubio |
[69212a0] | 37 | |
[972a326] | 38 | clean_python: |
39 | cd python && ./setup.py clean | |
40 | ||
[a2ae70a] | 41 | build_python3: |
42 | cd python && python3 ./setup.py build | |
43 | ||
44 | clean_python3: | |
45 | cd python && python3 ./setup.py clean | |
46 | ||
[ddd9861] | 47 | clean: |
[81ad577] | 48 | $(WAFCMD) clean |
[ddd9861] | 49 | |
[e372a0f] | 50 | distcheck: checkwaf |
[81ad577] | 51 | $(WAFCMD) distcheck |
[8e94af5] | 52 | |
53 | help: | |
[81ad577] | 54 | $(WAFCMD) --help |
Note: See TracBrowser
for help on using the repository browser.