2011-02-03 05:08:37 +03:00
# simple makefile wrapper to run waf
2012-11-07 01:29:07 +04:00
PYTHON ?= python
WAF_BINARY = $( PYTHON) ./buildtools/bin/waf
2011-02-03 05:08:37 +03:00
WAF = WAF_MAKE = 1 $( WAF_BINARY)
all :
$( WAF) build
install :
$( WAF) install
uninstall :
$( WAF) uninstall
test :
2011-11-09 06:08:37 +04:00
$( WAF) test $( TEST_OPTIONS)
2011-02-03 05:08:37 +03:00
help :
@echo NOTE: to run extended waf options use $( WAF_BINARY) or modify your PATH
$( WAF) --help
subunit-test :
2011-11-09 06:08:37 +04:00
$( WAF) test --filtered-subunit $( TEST_OPTIONS)
2011-02-03 05:08:37 +03:00
testenv :
2011-11-09 06:08:37 +04:00
$( WAF) test --testenv $( TEST_OPTIONS)
2011-02-03 05:08:37 +03:00
2014-07-01 17:05:21 +04:00
gdbtestenv :
$( WAF) test --testenv --gdbtest $( TEST_OPTIONS)
2011-02-03 05:08:37 +03:00
quicktest :
2011-11-09 06:08:37 +04:00
$( WAF) test --quick $( TEST_OPTIONS)
2011-02-03 05:08:37 +03:00
dist :
touch .tmplock
WAFLOCK = .tmplock $( WAF) dist
distcheck :
touch .tmplock
WAFLOCK = .tmplock $( WAF) distcheck
clean :
$( WAF) clean
distclean :
$( WAF) distclean
reconfigure : configure
$( WAF) reconfigure
show_waf_options :
$( WAF) --help
# some compatibility make targets
everything : all
testsuite : all
check : test
torture : all
# this should do an install as well, once install is finished
installcheck : test
etags :
$( WAF) etags
ctags :
$( WAF) ctags
# this allows for things like "make bin/smbtorture"
bin/% :: FORCE
2011-06-10 05:32:27 +04:00
$( WAF) --targets= $@
2011-02-03 05:08:37 +03:00
FORCE :
pydoctor :
$( WAF) pydoctor
2011-12-09 01:14:55 +04:00
pep8 :
$( WAF) pep8