waf: fixed 'make bin/XXX' for the remaining binaries
[metze/samba-autobuild/.git] / buildtools / scripts / Makefile.waf
1 # simple makefile wrapper to run waf
2
3 WAF_BINARY=BUILDTOOLS/bin/waf
4 WAF=WAF_MAKE=1 $(WAF_BINARY)
5
6 all:
7         $(WAF) build
8
9 install:
10         $(WAF) install
11
12 uninstall:
13         $(WAF) uninstall
14
15 test:
16         $(WAF) test $(TEST_OPTIONS)
17
18 help:
19         @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
20         $(WAF) --help
21
22 testenv:
23         $(WAF) test --testenv $(TEST_OPTIONS)
24
25 quicktest:
26         $(WAF) test --quick $(TEST_OPTIONS)
27
28 dist:
29         $(WAF) dist
30
31 distcheck:
32         $(WAF) distcheck
33
34 clean:
35         $(WAF) clean
36
37 distclean:
38         $(WAF) distclean
39
40 reconfigure: configure
41         $(WAF) reconfigure
42
43 show_waf_options:
44         $(WAF) --help
45
46 # some compatibility make targets
47 everything: all
48
49 testsuite: all
50
51 check: test
52
53 torture: all
54
55 # this should do an install as well, once install is finished
56 installcheck: test
57
58 etags:
59         $(WAF) etags
60
61 ctags:
62         $(WAF) ctags
63
64 bin/%:: FORCE
65         $(WAF) --targets=$@
66 FORCE:
67
68 configure: autogen-waf.sh BUILDTOOLS/scripts/configure.waf
69         ./autogen-waf.sh
70
71 Makefile: autogen-waf.sh configure BUILDTOOLS/scripts/Makefile.waf
72         ./autogen-waf.sh