build: Move python detection back into waf (instead of in configure and Makefile)
[vlendec/samba-autobuild/.git] / lib / talloc / Makefile
1 # simple makefile wrapper to run waf
2
3 WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
4 WAF=PYTHONHASHSEED=1 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 testenv:
19         $(WAF) test --testenv $(TEST_OPTIONS)
20
21 quicktest:
22         $(WAF) test --quick $(TEST_OPTIONS)
23
24 dist:
25         touch .tmplock
26         WAFLOCK=.tmplock $(WAF) dist
27
28 distcheck:
29         touch .tmplock
30         WAFLOCK=.tmplock $(WAF) distcheck
31
32 clean:
33         $(WAF) clean
34
35 distclean:
36         $(WAF) distclean
37
38 reconfigure: configure
39         $(WAF) reconfigure
40
41 show_waf_options:
42         $(WAF) --help
43
44 # some compatibility make targets
45 everything: all
46
47 testsuite: all
48
49 check: test
50
51 torture: all
52
53 # this should do an install as well, once install is finished
54 installcheck: test
55
56 etags:
57         $(WAF) etags
58
59 ctags:
60         $(WAF) ctags
61
62 pydoctor:
63         $(WAF) pydoctor
64
65 bin/%:: FORCE
66         $(WAF) --targets=`basename $@`
67 FORCE: