ctdb-scripts: Add registration for CTDB_NFS_CALLOUT operations
[Samba.git] / Makefile
blobaa532b65bb44df0beed44f03b3655dc7b7663501
1 # simple makefile wrapper to run waf
3 PYTHON?=python
4 WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
5 WAF=WAF_MAKE=1 $(WAF_BINARY)
7 all:
8 $(WAF) build
10 install:
11 $(WAF) install
13 uninstall:
14 $(WAF) uninstall
16 test:
17 $(WAF) test $(TEST_OPTIONS)
19 help:
20 @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
21 $(WAF) --help
23 subunit-test:
24 $(WAF) test --filtered-subunit $(TEST_OPTIONS)
26 testenv:
27 $(WAF) test --testenv $(TEST_OPTIONS)
29 gdbtestenv:
30 $(WAF) test --testenv --gdbtest $(TEST_OPTIONS)
32 quicktest:
33 $(WAF) test --quick $(TEST_OPTIONS)
35 randomized-test:
36 $(WAF) test --random-order $(TEST_OPTIONS)
38 dist:
39 touch .tmplock
40 WAFLOCK=.tmplock $(WAF) dist
42 distcheck:
43 touch .tmplock
44 WAFLOCK=.tmplock $(WAF) distcheck
46 clean:
47 $(WAF) clean
49 distclean:
50 $(WAF) distclean
52 reconfigure: configure
53 $(WAF) reconfigure
55 show_waf_options:
56 $(WAF) --help
58 # some compatibility make targets
59 everything: all
61 testsuite: all
63 check: test
65 torture: all
67 # this should do an install as well, once install is finished
68 installcheck: test
70 etags:
71 $(WAF) etags
73 ctags:
74 $(WAF) ctags
76 pydoctor:
77 $(WAF) pydoctor
79 pep8:
80 $(WAF) pep8
82 # Adding force on the depencies will force the target to be always rebuild form the Make
83 # point of view forcing make to invoke waf
85 bin/smbd: FORCE
86 $(WAF) --targets=smbd/smbd
88 bin/winbindd: FORCE
89 $(WAF) --targets=winbindd/winbindd
91 bin/nmbd: FORCE
92 $(WAF) --targets=nmbd/nmbd
94 bin/smbclient: FORCE
95 $(WAF) --targets=client/smbclient
97 # this allows for things like "make bin/smbtorture"
98 # mainly for the binary that don't have a broken mode like smbd that must
99 # be build with smbd/smbd
100 bin/%: FORCE
101 $(WAF) --targets=$(subst bin/,,$@)
103 # Catch all rule to be able to call make service_repl in order to find the name
104 # of the submodule you want to build, look at the wscript
106 $(WAF) --targets=$@
108 # This rule has to be the last one
109 FORCE:
110 # Having .NOTPARALLEL will force make to do target once at a time but still -j
111 # will be present in the MAKEFLAGS that are in turn interpreted by WAF
112 # so only 1 waf at a time will be called but it will still be able to do parralel builds if
113 # instructed to do so
114 .NOTPARALLEL: %
115 .PHONY: FORCE everything testsuite check torture