s3-build: share smbtorture4 build rules with s3-waf build.
[ira/wip.git] / source3 / wscript_build
index 1e0fa4ac13de3d3e4b79b479e635cf02b1482989..3bbeeea6612be413a1dc5bdc9438f6c5b1121daf 100644 (file)
@@ -634,6 +634,12 @@ t = bld.SAMBA_GENERATOR('build_env.h',
 t.env.SRCDIR = bld.path.abspath()
 t.env.BUILDDIR = bld.path.abspath()
 
+if not bld.env.toplevel_build:
+    bld.SAMBA_GENERATOR('smbtorture4',
+                       source='',
+                       target='',
+                       rule='cd ../; make -f Makefile-smbtorture4 bin/smbtorture4',
+                       always=True)
 
 bld.SETUP_BUILD_GROUPS()