Prevent building of translations if 'wesnoth' target is requested...

...but its dependencies aren't found.
This commit is contained in:
Sergey Popov 2009-08-08 23:49:44 +00:00
parent 5b4ece9bc6
commit d96f28309d

View File

@ -427,6 +427,11 @@ binary_nodes = map(eval, binaries)
all = env.Alias("all", map(Alias, binaries))
env.Default(map(Alias, env["default_targets"]))
if have_client_prereqs and env["nls"]:
env.Requires("wesnoth", Dir("translations"))
if env["dummy_locales"]:
env.Requires(wesnoth, Dir("locales"))
#
# Utility productions (Unix-like systems only)
#
@ -453,10 +458,6 @@ if env["dummy_locales"]:
"ln -sf $SOURCE.filebase $TARGET"
)
env.Requires(wesnoth, Dir("locales"))
if env["nls"]:
env.Requires(wesnoth, Dir("translations"))
#
# Unix installation productions
#