anchor.diff:              mode = PREPROCESS
           if k in ("-d", "--document"):
               mode = DOCUMENT
  +        if k in ("-j", "--install-doc"):
  +            mode = INSTALLDOC
           if k in ("-o", "--outfile"):
               if len(args) != 1:
                   raise SystemExit, "Cannot specify -o with multiple input files"
  
positive.code:     else:
          print >>f, "static int get_data_size(void) { return 0; }"
  
  INSTALL, COMPILE, PREPROCESS, DOCUMENT = range(4)
  
  modinc = None
  def find_modinc():
  
negative.code:     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))
      print >>f, "EXTRA_CFLAGS += -I%s" % os.path.abspath('.')
      f.close()
      if mode == INSTALL:
          target = "modules install"
  