PY3: switch current build to use python3
[samba.git] / ctdb / Makefile
1 # simple makefile wrapper to run waf
2
3 PYTHON?=python3
4 WAF_BINARY=$(PYTHON) ../buildtools/bin/waf
5 WAF=WAF_MAKE=1 $(WAF_BINARY)
6
7 all:
8         $(WAF) build
9
10 install:
11         $(WAF) install
12
13 uninstall:
14         $(WAF) uninstall
15
16 test: FORCE
17         $(WAF) test $(TEST_OPTIONS)
18
19 testenv:
20         $(WAF) test --testenv $(TEST_OPTIONS)
21
22 autotest:
23         $(WAF) autotest $(TEST_OPTIONS)
24
25 quicktest:
26         $(WAF) test --quick $(TEST_OPTIONS)
27
28 show_version:
29         @touch .tmplock
30         @WAFLOCK=.tmplock $(WAF) show_version
31
32 manpages:
33         touch .tmplock
34         WAFLOCK=.tmplock $(WAF) manpages
35
36 dist:
37         touch .tmplock
38         WAFLOCK=.tmplock $(WAF) dist
39
40 distcheck:
41         touch .tmplock
42         WAFLOCK=.tmplock $(WAF) distcheck
43
44 rpm:
45         touch .tmplock
46         WAFLOCK=.tmplock $(WAF) rpm
47
48 clean:
49         $(WAF) clean
50
51 distclean:
52         $(WAF) distclean
53
54 reconfigure: configure
55         $(WAF) reconfigure
56
57 show_waf_options:
58         $(WAF) --help
59
60 # some compatibility make targets
61 everything: all
62
63 testsuite: all
64
65 check: test
66
67 torture: all
68
69 # this should do an install as well, once install is finished
70 installcheck: test
71
72 etags:
73         $(WAF) etags
74
75 ctags:
76         touch .tmplock
77         WAFLOCK=.tmplock $(WAF) ctags
78
79 pydoctor:
80         $(WAF) pydoctor
81
82 bin/%:: FORCE
83         $(WAF) --targets=`basename $@`
84 FORCE: