replace: Build using waf by default.
[sfrench/samba-autobuild/.git] / lib / replace / Makefile
1 # simple makefile wrapper to run waf
2
3 WAFPATH:=$(shell PATH=../../buildtools/bin:buildtools/bin:$(PATH) which waf)
4
5 WAF=WAF_MAKE=1 $(WAFPATH)
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 testenv:
20         $(WAF) test --testenv $(TEST_OPTIONS)
21
22 quicktest:
23         $(WAF) test --quick $(TEST_OPTIONS)
24
25 dist:
26         $(WAF) dist
27
28 distcheck:
29         $(WAF) distcheck
30
31 clean:
32         $(WAF) clean
33
34 distclean:
35         $(WAF) distclean
36
37 reconfigure: configure
38         $(WAF) reconfigure
39
40 show_waf_options:
41         $(WAF) --help
42
43 # some compatibility make targets
44 everything: all
45
46 testsuite: all
47
48 check: test
49
50 torture: all
51
52 # this should do an install as well, once install is finished
53 installcheck: test
54
55 etags:
56         $(WAF) etags
57
58 ctags:
59         $(WAF) ctags
60
61 bin/%:: FORCE
62         $(WAF) --targets=`basename $@`
63 FORCE:
64
65 configure: autogen-waf.sh ../../buildtools/scripts/configure.waf
66         ./autogen-waf.sh
67
68 Makefile: autogen-waf.sh configure ../../buildtools/scripts/Makefile.waf
69         ./autogen-waf.sh