Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("BUILD_TYPE") == "" then return end
  2. deps = tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > lang.inc", {"lang.inc"})
  3. DOCDIR = "../../../../data/" .. tup.getconfig("BUILD_TYPE") .. "/docs/"
  4. if tup.getconfig("TUP_PLATFORM") == "win32"
  5. then env_prefix = "set DOCDIR=$(DOCDIR)&&"; cp_cmd = "copy %f %o"
  6. else env_prefix = "DOCDIR=$(DOCDIR) "; cp_cmd = "cp %f %o"
  7. end
  8. if tup.getconfig("LANG") == "ru"
  9. then tup.append_table(deps,
  10.   tup.rule("../../../../kernel/trunk/docs/sysfuncr.txt", "iconv -f utf-8 -t cp866 %f > %o", "SYSFUNCR.TXT"))
  11. else tup.append_table(deps,
  12.   tup.rule("../../../../kernel/trunk/docs/sysfuncs.txt", cp_cmd, "SYSFUNCS.TXT"))
  13. end
  14. tup.append_table(deps,
  15.   tup.rule("../../../develop/fasm/trunk/fasm.txt", cp_cmd, "FASM.TXT")
  16. )
  17. tup.rule({"docpack.asm", extra_inputs = deps}, env_prefix .. "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "docpack")
  18.