2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("BUILD_TYPE") == "" then return end
|
|
|
|
deps = tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > lang.inc", {"lang.inc"})
|
|
|
|
DOCDIR = "../../../../data/" .. tup.getconfig("BUILD_TYPE") .. "/docs/"
|
|
|
|
if tup.getconfig("TUP_PLATFORM") == "win32"
|
|
|
|
then env_prefix = "set DOCDIR=$(DOCDIR)&&"; cp_cmd = "copy %f %o"
|
|
|
|
else env_prefix = "DOCDIR=$(DOCDIR) "; cp_cmd = "cp %f %o"
|
|
|
|
end
|
|
|
|
if tup.getconfig("LANG") == "ru"
|
|
|
|
then tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/sysfuncr.txt", "iconv -f utf-8 -t cp866 %f > %o", "SYSFUNCR.TXT"))
|
|
|
|
else tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/sysfuncs.txt", cp_cmd, "SYSFUNCS.TXT"))
|
|
|
|
end
|
|
|
|
tup.append_table(deps,
|
2020-04-29 01:37:24 +02:00
|
|
|
tup.rule("../../../develop/fasm/1.73/fasm.txt", cp_cmd, "FASM.TXT")
|
2014-09-12 17:15:23 +02:00
|
|
|
)
|
2020-01-14 21:12:46 +01:00
|
|
|
tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/stack.txt", cp_cmd, "STACK.TXT")
|
|
|
|
)
|
2014-09-12 17:15:23 +02:00
|
|
|
tup.rule({"docpack.asm", extra_inputs = deps}, env_prefix .. "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "docpack")
|