@@ -9,8 +9,12 @@ import os
 import string
 import time
 
-buildDir = os.environ['BUILT_PRODUCTS_DIR']
+buildDir = '/tmp/ntabuild'
+makeJobs = 3
 pushd = os.getcwd()
+
+if not os.path.exists(buildDir):
+  os.makedirs(buildDir)
 os.chdir(buildDir)
 
 if 'clean' in sys.argv[1:]:
#!/usr/bin/env python

# Identical to make, but assumes that the default rule is install,
# rather than all (which just builds).
# Does not attempt install if clean is present.

import sys
import os
import string
import time

buildDir = os.environ['BUILT_PRODUCTS_DIR']
pushd = os.getcwd()
os.chdir(buildDir)

if 'clean' in sys.argv[1:]:
  retCode = os.system('make uninstall clean')
  if retCode != 0:
    print >>sys.stderr, 'Clean failed: Error', retCode
    sys.exit(1)
  else:
    print 'Clean completed.'
    sys.exit(0)
elif sys.argv[1:]:
  args = sys.argv[1:]
else:
  args = ['install']

useMake = True
if useMake:
  retCode = os.system(string.join(["make"] + args, " "))
  if retCode != 0:
    print >>sys.stderr, "Build failed. Error", retCode
    sys.exit(1)
  else:
    sys.exit(0)

In the build.sh script we use `$BUILDDIR` to override the default that you have here. Can we do the same here? And same for the next line and `$MK_JOBS`.