Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7c2a4bf2
Commit
7c2a4bf2
authored
Jan 04, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add dependencies on all po files for po-translated resources.
parent
f8595357
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
2 deletions
+101
-2
Make.rules.in
Make.rules.in
+1
-0
Make.vars.in
Make.vars.in
+2
-0
configure
configure
+42
-0
configure.ac
configure.ac
+40
-0
Makefile.in
programs/clock/Makefile.in
+1
-0
make_makefiles
tools/make_makefiles
+15
-2
No files found.
Make.rules.in
View file @
7c2a4bf2
...
...
@@ -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)
$(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res): $(WRC)
$(PO_SRCS:.rc=.res): $(ALL_PO_FILES)
dummy:
...
...
Make.vars.in
View file @
7c2a4bf2
...
...
@@ -53,6 +53,8 @@ RSVG = @RSVG@
CONVERT = @CONVERT@
ICOTOOL = @ICOTOOL@
CROSSTARGET = @CROSSTARGET@
LINGUAS = @LINGUAS@
ALL_PO_FILES = $(LINGUAS:%=@top_srcdir@/po/%.po)
CROSSAR = $(CROSSTARGET)-ar
CROSSRANLIB = $(CROSSTARGET)-ranlib
MKINSTALLDIRS = $(top_srcdir)/tools/mkinstalldirs -m 755
...
...
configure
View file @
7c2a4bf2
...
...
@@ -596,6 +596,7 @@ ac_includes_default="\
ac_subst_vars
=
'LTLIBOBJS
LIBOBJS
LINGUAS
ALL_TEST_BINARIES
ALL_WINETEST_DEPENDS
LDAPLIBS
...
...
@@ -15454,6 +15455,47 @@ wine_fn_config_tool tools/winegcc
wine_fn_config_tool tools/wmc
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"
...
...
configure.ac
View file @
7c2a4bf2
...
...
@@ -2940,6 +2940,46 @@ WINE_CONFIG_TOOL(tools/winedump)
WINE_CONFIG_TOOL(tools/winegcc)
WINE_CONFIG_TOOL(tools/wmc)
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
AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
...
...
programs/clock/Makefile.in
View file @
7c2a4bf2
...
...
@@ -8,5 +8,6 @@ C_SRCS = \
winclock.c
RC_SRCS
=
clock.rc
PO_SRCS
=
clock.rc
@MAKE_PROG_RULES@
tools/make_makefiles
View file @
7c2a4bf2
...
...
@@ -170,7 +170,7 @@ my %ignored_source_files = (
"programs/winetest/dist.rc"
=>
1
,
);
my
(
@makefiles
,
%
makefiles
);
my
(
@
linguas
,
@
makefiles
,
%
makefiles
);
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
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"
;
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
)
{
...
...
@@ -575,6 +587,7 @@ foreach my $file (sort values %makerules, @makefiles)
}
assign_sources_to_makefiles
(
@all_files
);
update_linguas
(
@linguas
);
update_makefiles
(
@makefiles
);
push
@ignores
,
update_ignores
(
@makefiles
);
update_gitignore
(
@ignores
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment