anchor.diff:          f.close()
   
           if mode != PREPROCESS:
  -            build(tempdir, outfilename, mode)
  +            build(tempdir, outfilename, mode, filename)
   
       finally:
           shutil.rmtree(tempdir) 
  
positive.code:             tempdir = tempfile.mkdtemp()
              try:
                  shutil.copy(f, tempdir)
                  build(tempdir, os.path.join(tempdir, os.path.basename(f)), mode)
              finally:
                  shutil.rmtree(tempdir) 
          else:
  
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"
  