-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 766 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-
#
# A small set of rules to help compiling pd-aubio
#
# Note: simply running `make` should attempt to build this
WAFCMD=python waf
#WAFOPTS:=
# turn on verbose mode
#WAFOPTS += --verbose
all: build
checkwaf:
@[ -f waf ] || make getwaf
getwaf:
./scripts/get_waf.sh
expandwaf: getwaf
[ -d wafilb ] || rm -fr waflib
$(WAFCMD) --help > /dev/null
mv .waf*/waflib . && rm -fr .waf*
sed '/^#==>$$/,$$d' waf > waf2 && mv waf2 waf
chmod +x waf && chmod -R go-w waflib
cleanwaf:
rm -rf waf waflib .waf*
configure: checkwaf
$(WAFCMD) configure $(WAFOPTS)
build: configure
$(WAFCMD) build $(WAFOPTS)
install:
# install
$(WAFCMD) install $(WAFOPTS)
clean: checkwaf
# optionnaly clean before build
-$(WAFCMD) clean