makefiles: Add dependencies on all po files for po-translated resources.
This commit is contained in:
parent
f859535774
commit
7c2a4bf25e
|
@ -181,6 +181,7 @@ $(MC_SRCS:.mc=.mc.rc): $(WMC)
|
||||||
$(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_R_SRCS:.idl=_r.res): $(WIDL)
|
$(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_R_SRCS:.idl=_r.res): $(WIDL)
|
||||||
|
|
||||||
$(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res): $(WRC)
|
$(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res): $(WRC)
|
||||||
|
$(PO_SRCS:.rc=.res): $(ALL_PO_FILES)
|
||||||
|
|
||||||
dummy:
|
dummy:
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,8 @@ RSVG = @RSVG@
|
||||||
CONVERT = @CONVERT@
|
CONVERT = @CONVERT@
|
||||||
ICOTOOL = @ICOTOOL@
|
ICOTOOL = @ICOTOOL@
|
||||||
CROSSTARGET = @CROSSTARGET@
|
CROSSTARGET = @CROSSTARGET@
|
||||||
|
LINGUAS = @LINGUAS@
|
||||||
|
ALL_PO_FILES = $(LINGUAS:%=@top_srcdir@/po/%.po)
|
||||||
CROSSAR = $(CROSSTARGET)-ar
|
CROSSAR = $(CROSSTARGET)-ar
|
||||||
CROSSRANLIB = $(CROSSTARGET)-ranlib
|
CROSSRANLIB = $(CROSSTARGET)-ranlib
|
||||||
MKINSTALLDIRS = $(top_srcdir)/tools/mkinstalldirs -m 755
|
MKINSTALLDIRS = $(top_srcdir)/tools/mkinstalldirs -m 755
|
||||||
|
|
|
@ -596,6 +596,7 @@ ac_includes_default="\
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
LINGUAS
|
||||||
ALL_TEST_BINARIES
|
ALL_TEST_BINARIES
|
||||||
ALL_WINETEST_DEPENDS
|
ALL_WINETEST_DEPENDS
|
||||||
LDAPLIBS
|
LDAPLIBS
|
||||||
|
@ -15454,6 +15455,47 @@ wine_fn_config_tool tools/winegcc
|
||||||
wine_fn_config_tool tools/wmc
|
wine_fn_config_tool tools/wmc
|
||||||
wine_fn_config_tool tools/wrc
|
wine_fn_config_tool tools/wrc
|
||||||
|
|
||||||
|
LINGUAS="\
|
||||||
|
cs \
|
||||||
|
da \
|
||||||
|
de \
|
||||||
|
en_US \
|
||||||
|
eo \
|
||||||
|
es \
|
||||||
|
fi \
|
||||||
|
fr \
|
||||||
|
he \
|
||||||
|
hi \
|
||||||
|
hu \
|
||||||
|
it \
|
||||||
|
ja \
|
||||||
|
ko \
|
||||||
|
lt \
|
||||||
|
ml \
|
||||||
|
nb_NO \
|
||||||
|
nl \
|
||||||
|
or \
|
||||||
|
pa \
|
||||||
|
pl \
|
||||||
|
pt_BR \
|
||||||
|
pt_PT \
|
||||||
|
ro \
|
||||||
|
ru \
|
||||||
|
sk \
|
||||||
|
sl \
|
||||||
|
sr_Latn_SP \
|
||||||
|
sr_SP \
|
||||||
|
sv \
|
||||||
|
te \
|
||||||
|
th \
|
||||||
|
tr \
|
||||||
|
uk \
|
||||||
|
wa \
|
||||||
|
zh_CN \
|
||||||
|
zh_TW"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_config_commands="$ac_config_commands Makefile"
|
ac_config_commands="$ac_config_commands Makefile"
|
||||||
|
|
||||||
|
|
||||||
|
|
40
configure.ac
40
configure.ac
|
@ -2940,6 +2940,46 @@ WINE_CONFIG_TOOL(tools/winedump)
|
||||||
WINE_CONFIG_TOOL(tools/winegcc)
|
WINE_CONFIG_TOOL(tools/winegcc)
|
||||||
WINE_CONFIG_TOOL(tools/wmc)
|
WINE_CONFIG_TOOL(tools/wmc)
|
||||||
WINE_CONFIG_TOOL(tools/wrc)
|
WINE_CONFIG_TOOL(tools/wrc)
|
||||||
|
|
||||||
|
AC_SUBST([LINGUAS],["\
|
||||||
|
cs \
|
||||||
|
da \
|
||||||
|
de \
|
||||||
|
en_US \
|
||||||
|
eo \
|
||||||
|
es \
|
||||||
|
fi \
|
||||||
|
fr \
|
||||||
|
he \
|
||||||
|
hi \
|
||||||
|
hu \
|
||||||
|
it \
|
||||||
|
ja \
|
||||||
|
ko \
|
||||||
|
lt \
|
||||||
|
ml \
|
||||||
|
nb_NO \
|
||||||
|
nl \
|
||||||
|
or \
|
||||||
|
pa \
|
||||||
|
pl \
|
||||||
|
pt_BR \
|
||||||
|
pt_PT \
|
||||||
|
ro \
|
||||||
|
ru \
|
||||||
|
sk \
|
||||||
|
sl \
|
||||||
|
sr_Latn_SP \
|
||||||
|
sr_SP \
|
||||||
|
sv \
|
||||||
|
te \
|
||||||
|
th \
|
||||||
|
tr \
|
||||||
|
uk \
|
||||||
|
wa \
|
||||||
|
zh_CN \
|
||||||
|
zh_TW"])
|
||||||
|
|
||||||
dnl End of auto-generated output commands
|
dnl End of auto-generated output commands
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
|
AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
|
||||||
|
|
|
@ -8,5 +8,6 @@ C_SRCS = \
|
||||||
winclock.c
|
winclock.c
|
||||||
|
|
||||||
RC_SRCS = clock.rc
|
RC_SRCS = clock.rc
|
||||||
|
PO_SRCS = clock.rc
|
||||||
|
|
||||||
@MAKE_PROG_RULES@
|
@MAKE_PROG_RULES@
|
||||||
|
|
|
@ -170,7 +170,7 @@ my %ignored_source_files = (
|
||||||
"programs/winetest/dist.rc" => 1,
|
"programs/winetest/dist.rc" => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
my (@makefiles, %makefiles);
|
my (@linguas, @makefiles, %makefiles);
|
||||||
|
|
||||||
sub dirname($)
|
sub dirname($)
|
||||||
{
|
{
|
||||||
|
@ -472,6 +472,8 @@ sub update_makefiles(@)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
push @lines, "\nAC_SUBST([LINGUAS],[\"\\\n", join( " \\\n", sort @linguas ), "\"])\n\n";
|
||||||
|
|
||||||
# update the source variables in all the makefiles
|
# update the source variables in all the makefiles
|
||||||
|
|
||||||
foreach my $file (sort @_)
|
foreach my $file (sort @_)
|
||||||
|
@ -563,10 +565,20 @@ sub update_gitignore(@)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# update the LINGUAS file
|
||||||
|
|
||||||
|
sub update_linguas(@)
|
||||||
|
{
|
||||||
|
replace_in_file( "po/LINGUAS", undef, undef, join("\n", sort @_), "\n" );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
die "needs to be run from a git checkout" unless -d ".git";
|
die "needs to be run from a git checkout" unless -d ".git";
|
||||||
|
|
||||||
my @all_files = split /\0/, `git ls-files -c -z`;
|
my @all_files = split /\0/, `git ls-files -c -z`;
|
||||||
@makefiles = map { my $ret = $_; $ret =~ s/\.in$//; $ret; } grep /Makefile.in$/, @all_files;
|
@linguas = map { (my $ret = $_) =~ s/^po\/(.*)\.po/$1/; $ret; } grep /^po\/.*\.po$/, @all_files;
|
||||||
|
@makefiles = map { (my $ret = $_) =~ s/\.in$//; $ret; } grep /Makefile.in$/, @all_files;
|
||||||
|
|
||||||
foreach my $file (sort values %makerules, @makefiles)
|
foreach my $file (sort values %makerules, @makefiles)
|
||||||
{
|
{
|
||||||
|
@ -575,6 +587,7 @@ foreach my $file (sort values %makerules, @makefiles)
|
||||||
}
|
}
|
||||||
|
|
||||||
assign_sources_to_makefiles( @all_files );
|
assign_sources_to_makefiles( @all_files );
|
||||||
|
update_linguas( @linguas );
|
||||||
update_makefiles( @makefiles );
|
update_makefiles( @makefiles );
|
||||||
push @ignores, update_ignores( @makefiles );
|
push @ignores, update_ignores( @makefiles );
|
||||||
update_gitignore( @ignores );
|
update_gitignore( @ignores );
|
||||||
|
|
Loading…
Reference in New Issue