ctdb-build: Add build files (configure/Makefile) to use waf
[samba.git] / ctdb / Makefile
1 # simple makefile wrapper to run waf
2
3 WAF=WAF_MAKE=1 PATH=../buildtools/bin:$$PATH waf
4
5 all:
6         $(WAF) build
7
8 install:
9         $(WAF) install
10
11 uninstall:
12         $(WAF) uninstall
13
14 test: FORCE
15         $(WAF) test $(TEST_OPTIONS)
16
17 testenv:
18         $(WAF) test --testenv $(TEST_OPTIONS)
19
20 autotest:
21         $(WAF) autotest $(TEST_OPTIONS)
22
23 quicktest:
24         $(WAF) test --quick $(TEST_OPTIONS)
25
26 dist:
27         touch .tmplock
28         WAFLOCK=.tmplock $(WAF) dist
29
30 distcheck:
31         touch .tmplock
32         WAFLOCK=.tmplock $(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 pydoctor:
65         $(WAF) pydoctor
66
67 bin/%:: FORCE
68         $(WAF) --targets=`basename $@`
69 FORCE: