make: Add gdbtestenv target.
[amitay/samba.git] / Makefile
1 # simple makefile wrapper to run waf
2
3 PYTHON?=python
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:
17         $(WAF) test $(TEST_OPTIONS)
18
19 help:
20         @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
21         $(WAF) --help
22
23 subunit-test:
24         $(WAF) test --filtered-subunit $(TEST_OPTIONS)
25
26 testenv:
27         $(WAF) test --testenv $(TEST_OPTIONS)
28
29 gdbtestenv:
30         $(WAF) test --testenv --gdbtest $(TEST_OPTIONS)
31
32 quicktest:
33         $(WAF) test --quick $(TEST_OPTIONS)
34
35 dist:
36         touch .tmplock
37         WAFLOCK=.tmplock $(WAF) dist
38
39 distcheck:
40         touch .tmplock
41         WAFLOCK=.tmplock $(WAF) distcheck
42
43 clean:
44         $(WAF) clean
45
46 distclean:
47         $(WAF) distclean
48
49 reconfigure: configure
50         $(WAF) reconfigure
51
52 show_waf_options:
53         $(WAF) --help
54
55 # some compatibility make targets
56 everything: all
57
58 testsuite: all
59
60 check: test
61
62 torture: all
63
64 # this should do an install as well, once install is finished
65 installcheck: test
66
67 etags:
68         $(WAF) etags
69
70 ctags:
71         $(WAF) ctags
72
73 # this allows for things like "make bin/smbtorture"
74 bin/%:: FORCE
75         $(WAF) --targets=$@
76 FORCE:
77
78 pydoctor:
79         $(WAF) pydoctor
80
81 pep8:
82         $(WAF) pep8