This is the way I like it:
- Only call fpc on hwengine.pas, let compiler rule the dependencies
- Make hwengine.pas depend on all other source files, so 'make' always calls fpc
-- Library for localizing strings in lua scripts
local lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua")
function loc(text)
if locale ~= nil and locale[text] ~= nil then return locale[text]
else return text
end
end