source:
Makefile
@
95e0336
Last change on this file since 95e0336 was 6a6cb48, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[81ad577] | 1 | WAFCMD=python waf |
[6a6cb48] | 2 | |
3 | ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double ) | |
4 | ||
[8e94af5] | 5 | all: build |
6 | ||
7 | checkwaf: | |
8 | @[ -f waf ] || make getwaf | |
9 | ||
10 | getwaf: | |
[edb1d7a] | 11 | curl https://waf.io/waf-1.8.20 > waf |
[81ad577] | 12 | @chmod +x waf |
13 | ||
14 | expandwaf: | |
[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] | 21 | configure: checkwaf |
[6a6cb48] | 22 | $(WAFCMD) configure $(WAFOPTS) $(ENABLE_DOUBLE) |
[e372a0f] | 23 | |
24 | build: configure | |
[3fc5696] | 25 | $(WAFCMD) build $(WAFOPTS) |
[8e94af5] | 26 | |
[972a326] | 27 | build_python: |
[6a6cb48] | 28 | cd python && python ./setup.py generate $(ENABLE_DOUBLE) build |
[972a326] | 29 | |
[69212a0] | 30 | test_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 | ||
35 | test_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] | 41 | clean_python: |
42 | cd python && ./setup.py clean | |
43 | ||
[a2ae70a] | 44 | build_python3: |
[6a6cb48] | 45 | cd python && python3 ./setup.py generate $(ENABLE_DOUBLE) build |
[a2ae70a] | 46 | |
47 | clean_python3: | |
48 | cd python && python3 ./setup.py clean | |
49 | ||
[ddd9861] | 50 | clean: |
[81ad577] | 51 | $(WAFCMD) clean |
[ddd9861] | 52 | |
[e372a0f] | 53 | distcheck: checkwaf |
[81ad577] | 54 | $(WAFCMD) distcheck |
[8e94af5] | 55 | |
56 | help: | |
[81ad577] | 57 | $(WAFCMD) --help |
Note: See TracBrowser
for help on using the repository browser.