Module: wine Branch: master Commit: bf8cb196b5b4ce2be51af1f70f0f6011f2f06bd8 URL: https://gitlab.winehq.org/wine/wine/-/commit/bf8cb196b5b4ce2be51af1f70f0f601...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Oct 12 10:54:07 2023 +0200
makefiles: Always use the global SOURCES variable for .po files.
---
po/Makefile.in | 2 +- tools/make_makefiles | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/po/Makefile.in b/po/Makefile.in index ed8ba49c8c1..634cfe15374 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -1,4 +1,4 @@ -PO_SRCS = \ +SOURCES = \ ar.po \ ast.po \ bg.po \ diff --git a/tools/make_makefiles b/tools/make_makefiles index 82446973f25..eebb02da691 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -338,7 +338,7 @@ sub assign_sources_to_makefiles(@) my $make = $makefiles{"$dir/Makefile.in"}; my $name = substr( $file, length($dir) + 1 );
- if ($name =~ /.mc$/) + if ($name =~ /.(mc|po)$/) { push @{${$make}{"=SOURCES"}}, $name; next; @@ -363,10 +363,6 @@ sub assign_sources_to_makefiles(@) { push @{${$make}{"=RC_SRCS"}}, $name; } - elsif ($name =~ /.po$/) - { - push @{${$make}{"=PO_SRCS"}}, $name; - } elsif ($name =~ /.idl$/) { die "no makedep flags specified in $file" unless $dir eq "include" || get_makedep_flags($file);