anchor.diff:              tempdir = tempfile.mkdtemp()
               try:
                   shutil.copy(f, tempdir)
  -                build(tempdir, os.path.join(tempdir, os.path.basename(f)), mode)
  +                build(tempdir, os.path.join(tempdir, os.path.basename(f)), mode, f)
               finally:
                   shutil.rmtree(tempdir) 
           else:
  
positive.code:         f.close()
  
          if mode != PREPROCESS:
              build(tempdir, outfilename, mode)
  
      finally:
          shutil.rmtree(tempdir) 
  
negative.code:             return e
      raise SystemExit, "Unable to locate Makefile.modinc"
  
  def build(tempdir, filename, mode, origfilename):
      objname = os.path.basename(os.path.splitext(filename)[0] + ".o")
      makefile = os.path.join(tempdir, "Makefile")
      f = open(makefile, "w")
      print >>f, "obj-m += %s" % objname
      print >>f, "include %s" % find_modinc()
      print >>f, "EXTRA_CFLAGS += -I%s" % os.path.abspath(os.path.dirname(origfilename))
      f.close()
      if mode == INSTALL:
          target = "modules install"
  