diff options
Diffstat (limited to 'buildtools/scripts')
-rw-r--r-- | buildtools/scripts/Makefile.waf | 48 | ||||
-rwxr-xr-x | buildtools/scripts/configure.waf | 11 |
2 files changed, 59 insertions, 0 deletions
diff --git a/buildtools/scripts/Makefile.waf b/buildtools/scripts/Makefile.waf new file mode 100644 index 0000000000..e17ae217df --- /dev/null +++ b/buildtools/scripts/Makefile.waf @@ -0,0 +1,48 @@ +# simple makefile wrapper to run waf + +# default to using only 1 cpu, to be friendly to build +# farm machines. I wonder how we get at the -jN option +# from make to pass it to waf? +JOBS=1 + +WAF=JOBS=$(JOBS) BUILDTOOLS/bin/waf + +all: + $(WAF) build + +install: + $(WAF) install + +uninstall: + $(WAF) uninstall + +test: + $(WAF) test + +quicktest: + $(WAF) test --quick + +clean: + $(WAF) clean + +distclean: clean + rm -rf bin + +# 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 + diff --git a/buildtools/scripts/configure.waf b/buildtools/scripts/configure.waf new file mode 100755 index 0000000000..a6367e7314 --- /dev/null +++ b/buildtools/scripts/configure.waf @@ -0,0 +1,11 @@ +#!/bin/sh + + +WAF=BUILDTOOLS/bin/waf + +# using JOBS=1 gives maximum compatibility with +# systems like AIX which have broken threading in python +JOBS=1 +export JOBS + +$WAF configure $* |