make_makefiles: List test directories explicitly in .gitignore.
[wine] / tools / make_makefiles
1 #!/usr/bin/perl -w
2 #
3 # Build the auto-generated parts of the Wine makefiles.
4 #
5 # Copyright 2006 Alexandre Julliard
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #
21
22 # Make rules files
23 my %makerules =
24 (
25  "MAKE_RULES" => "Make.rules",
26  "MAKE_DLL_RULES" => "dlls/Makedll.rules",
27  "MAKE_IMPLIB_RULES" => "dlls/Makeimplib.rules",
28  "MAKE_TEST_RULES" => "dlls/Maketest.rules",
29  "MAKE_PROG_RULES" => "programs/Makeprog.rules",
30 );
31
32 # Programs that we want to install in the bin directory too
33 my %bin_install =
34 (
35   "msiexec" => 1,
36   "notepad" => 1,
37   "progman" => 1,
38   "regedit" => 1,
39   "regsvr32" => 1,
40   "uninstaller" => 1,
41   "wineboot" => 1,
42   "winebrowser" => 1,
43   "winecfg" => 1,
44   "wineconsole" => 1,
45   "winedbg" => 1,
46   "winefile" => 1,
47   "winemine" => 1,
48   "winepath" => 1,
49   "winhelp" => 1,
50 );
51
52 # Programs that we don't want to install at all
53 my %dont_install =
54 (
55   "cmdlgtst" => 1,
56   "view" => 1,
57   "winetest" => 1,
58 );
59
60 # Special dlls that can be switched on or off by configure
61 my %special_dlls =
62 (
63   "glu32"    => "GLU32FILES",
64   "opengl32" => "OPENGLFILES",
65   "wined3d"  => "OPENGLFILES",
66   "winex11.drv" => "XFILES",
67   "winequartz.drv" => "QUARTZFILES"
68 );
69
70 # Default patterns for top-level .gitignore
71 my @ignores = (
72     "*.[oa]",
73     "*.so",
74     "/autom4te.cache",
75     "/config.cache",
76     "/config.log",
77     "/config.status",
78     "/TAGS",
79     "/tags",
80     "Makefile"
81 );
82
83 # Source files and their resulting target to ignore
84 my @ignore_srcs = (
85     [ 'BISON_SRCS',   '\.y',   '.tab.c' ],
86     [ 'BISON_SRCS',   '\.y',   '.tab.h' ],
87     [ 'LEX_SRCS',     '\.l',   '.yy.c' ],
88     [ 'MC_SRCS',      '\.mc',  '.mc.rc' ],
89     [ 'RC_SRCS',      '\.rc',  '.res' ],
90     [ 'RC_SRCS16',    '\.rc',  '.res' ],
91     [ 'IDL_TLB_SRCS', '\.idl', '.tlb' ],
92     [ 'IDL_C_SRCS',   '\.idl', '_c.c' ],
93     [ 'IDL_I_SRCS',   '\.idl', '_i.c' ],
94     [ 'IDL_P_SRCS',   '\.idl', '_p.c' ],
95     [ 'IDL_S_SRCS',   '\.idl', '_s.c' ],
96 );
97
98 my (@makefiles, %makefiles);
99
100 # update a file if changed
101 sub update_file($)
102 {
103     my $file = shift;
104     my $ret = system "cmp $file $file.new >/dev/null";
105     if (!$ret)
106     {
107         unlink "$file.new";
108     }
109     else
110     {
111         rename "$file.new", "$file";
112         print "$file updated\n";
113         if ($file eq "configure.ac")
114         {
115             system "autoconf";
116             print "configure updated\n";
117         }
118     }
119     return $ret;
120 }
121
122 # replace some lines in a file between two markers
123 sub replace_in_file($$$@)
124 {
125     my $file = shift;
126     my $start = shift;
127     my $end = shift;
128
129     open NEW_FILE, ">$file.new" or die "cannot create $file.new";
130
131     if (defined($start))
132     {
133         open OLD_FILE, "$file" or die "cannot open $file";
134         while (<OLD_FILE>)
135         {
136             last if /$start/;
137             print NEW_FILE $_;
138         }
139     }
140
141     print NEW_FILE @_;
142
143     if (defined($end))
144     {
145         my $skip=1;
146         while (<OLD_FILE>)
147         {
148             print NEW_FILE $_ unless $skip;
149             $skip = 0 if /$end/;
150         }
151     }
152
153     close OLD_FILE if defined($start);
154     close NEW_FILE;
155     return update_file($file);
156 }
157
158 # parse the specified makefile to identify the rules file
159 sub parse_makefile($)
160 {
161     my $file = shift;
162     my %make;
163
164     ($make{"=dir"} = $file) =~ s/[^\/]+$//;
165
166     open MAKE, "$file.in" or die "cannot open $file.in\n";
167
168     while (<MAKE>)
169     {
170         chomp;
171         while (/\\$/) { chop; $_ .= <MAKE>; chomp; }  # merge continued lines
172
173         if (/^\@(MAKE.*RULES)\@/)
174         {
175             my $var = $1;
176             $make{"=rules"} = $makerules{$var};
177             next;
178         }
179         if (/^(MODULE|IMPORTLIB)\s*=\s*(.*)/)
180         {
181             $make{$1} = $2;
182             next;
183         }
184         if (/^(BISON_SRCS|LEX_SRCS|IDL_[CHIPS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|MC_SRCS|RC_SRCS|RC_SRCS16|RC_BINARIES|SPEC_SRCS16|MANPAGES|PROGRAMS)\s*=\s*(.*)/)
185         {
186             my @list = split(/\s+/, $2);
187             $make{$1} = \@list;
188             next;
189         }
190         if (/^\#\s*MKDLL_SKIP/ || /^\#\s*MKPROG_SKIP/)
191         {
192             $make{"=skip"} = 1;
193             next;
194         }
195     }
196     return %make;
197 }
198
199 if (-d ".git")
200 {
201     @makefiles = map { s/\.in$//; $_; } split /\s/, `git ls-files -c Makefile.in \\*/Makefile.in`;
202 }
203 else
204 {
205     @makefiles = map { s/^\.\/(.*)\.in/$1/; $_; } split(/\s/,`find . -name Makefile.in -print`);
206 }
207
208 foreach my $file (sort values %makerules, @makefiles)
209 {
210     my %make = parse_makefile( $file );
211     $makefiles{$file} = \%make;
212 }
213
214 ################################################################
215 # update the makefile list in configure.ac
216
217 my @lines = ();
218
219 foreach my $var (sort { $makerules{$a} cmp $makerules{$b}; } keys %makerules)
220 {
221     push @lines, "$var=$makerules{$var}\n";
222     push @lines, "AC_SUBST_FILE($var)\n\n";
223 }
224
225 replace_in_file( "configure.ac", '^MAKE_RULES', '\]\)$',
226                  @lines,
227                  "AC_CONFIG_FILES([\n",
228                  join ("\n", (sort values %makerules), (sort @makefiles) ), "])\n" );
229
230
231 ################################################################
232 # update the tests list in programs/winetest/Makefile.in and programs/winetest/winetest.rc
233
234 sub update_winetest(@)
235 {
236     my (@tests, @lines);
237
238     foreach my $file (@_)
239     {
240         if ($file =~ /^dlls\/(.*)\/tests\/Makefile/) { push @tests, $1; }
241     }
242     push @lines, "TESTBINS =";
243     push @lines, map { " \\\n\t" . $_ . "_test.exe"; } sort @tests;
244     push @lines, "\n\n";
245
246     foreach my $test (sort @tests)
247     {
248         push @lines, "${test}_test.exe: \$(DLLDIR)/$test/tests/${test}_test.exe\$(DLLEXT)\n";
249         push @lines, "\tcp \$(DLLDIR)/$test/tests/${test}_test.exe\$(DLLEXT) \$\@ && \$(STRIP) \$\@\n";
250     }
251     push @lines, "\n# Special rules\n";
252
253     replace_in_file( "programs/winetest/Makefile.in", '^TESTBINS\s*=', '^# Special rules', @lines );
254
255     replace_in_file( "programs/winetest/winetest.rc", ' TESTRES ', undef,
256                      map { $_ . "_test.exe TESTRES \"" . $_ . "_test.exe\"\n"; } sort @tests );
257
258     # return a list of test exe files for .gitignore
259     return map { "programs/winetest/" . $_ . "_test.exe"; } sort @tests;
260 }
261
262
263 ################################################################
264 # update the makefile list in Makefile.in
265
266 sub update_makefiles(@)
267 {
268     my (@targets, @depends);
269
270     foreach my $file (sort values %makerules)
271     {
272         push @targets, $file;
273         my %make = %{$makefiles{$file}};
274         if (!defined($make{"=rules"})) { push @depends, "$file: $file.in"; }
275         else { push @depends, "$file: $file.in Make.rules"; }
276     }
277
278     foreach my $file (sort @_)
279     {
280         push @targets, $file unless $file eq "Makefile";
281         my %makefile = %{$makefiles{$file}};
282         my $dep = $makefile{"=rules"};
283         push @depends, "$file: $file.in $dep";
284     }
285
286
287     @lines = ();
288     push @lines, "ALL_MAKEFILES = \\\n\t";
289     push @lines, join (" \\\n\t", @targets ), "\n\n";
290     push @lines, "Makefile \$(ALL_MAKEFILES): config.status\n";
291     push @lines, "\t\@./config.status \$\@\n\n";
292     push @lines, "\$(RECURSE_TARGETS) \$(MAKEDEP): \$(ALL_MAKEFILES)\n\n";
293     push @lines, "distclean::\n";
294     push @lines, "\t\$(RM) Makefile \$(ALL_MAKEFILES)\n\n";
295     push @lines, join ("\n", @depends ), "\n";
296
297     replace_in_file( "Makefile.in", '^ALL_MAKEFILES\s*=', undef, @lines );
298 }
299
300
301 ################################################################
302 # process ignore targets for generic source files
303
304 sub update_ignores(@)
305 {
306     my @ignores;
307
308     foreach my $file (sort @_)
309     {
310         my %makefile = %{$makefiles{$file}};
311         my @list;
312
313         foreach my $src (@ignore_srcs)
314         {
315             my @pattern = @{$src};
316             next unless defined $makefile{$pattern[0]};
317             push @list, map { (my $ret = $_) =~ s/$pattern[1]$/$pattern[2]/; $ret; } @{$makefile{$pattern[0]}};
318         }
319         push @list, @{$makefile{"RC_BINARIES"}} if defined $makefile{"RC_BINARIES"};
320
321         push @ignores, map { $makefile{"=dir"} . $_; } @list;
322     }
323     return @ignores;
324 }
325
326 ################################################################
327 # update dlls/Makefile.in
328
329 sub update_dlls(@)
330 {
331     my (%directories, %testdirs, %importlibs, %static_implibs, %staticlib_dirs, %altnames);
332     my $text = "";
333     my @ignores = ();
334
335     sub needs_symlink($$)
336     {
337         my ($mod, $dir) = @_;
338         $mod =~ s/\.dll$//;
339         return $mod ne $dir;
340     }
341
342     foreach my $make (@_)
343     {
344         my %makefile = %{$makefiles{$make}};
345
346         if ($make =~ /dlls\/(.*)\/tests\/Makefile/)
347         {
348             push @ignores, $makefile{"=dir"} . "testlist.c";
349             push @ignores, $makefile{"=dir"} . "*.ok";
350             $testdirs{$1} = "$1/tests";
351             next;
352         }
353
354         next unless defined $makefile{"MODULE"};
355         my $module = $makefile{"MODULE"};
356         (my $dir = $make) =~ s/^dlls\/(.*)\/[^\/]+$/$1/;
357
358         if ($module =~ /^lib.*\.a$/)
359         {
360             $staticlib_dirs{$module} = $dir;
361             die "invalid module $module in dir $staticlib_dirs{$module}\n" if "lib$staticlib_dirs{$module}.a" ne $module;
362         }
363         else
364         {
365             $directories{$module} = $dir;
366         }
367
368         if (defined $makefile{"IMPORTLIB"})
369         {
370             if ($makefile{"IMPORTLIB"} =~ /^([a-zA-Z0-9_.]+)\.\$\(IMPLIBEXT\)/)
371             {
372                 $importlibs{$module} = $1;
373             }
374             else
375             {
376                 die "invalid importlib name $makefile{IMPORTLIB} in $make";
377             }
378         }
379
380         $static_implibs{$module} = 1 if defined $makefile{"IMPLIB_SRCS"};
381
382         if (defined $makefile{"SPEC_SRCS16"})
383         {
384             my @list = map { $_ =~ s/\.spec$//; $_ .= ".dll" unless $_ =~ /\./; $_; } @{$makefile{"SPEC_SRCS16"}};
385             $altnames{$module} = \@list;
386         }
387
388         if (defined $makefile{"IDL_H_SRCS"})
389         {
390             push @ignores, map { $_ =~ s/(.*)\.idl$/dlls\/$dir\/$1.h/; $_; } @{$makefile{"IDL_H_SRCS"}};
391         }
392     }
393
394     # output special dlls configure definitions
395
396     $text .= "# special configure-dependent targets\n\n";
397     my %specials = ();
398     foreach my $mod (sort keys %special_dlls)
399     {
400         $specials{$special_dlls{$mod}} .= " " . $mod;
401     }
402     foreach my $i (sort keys %specials)
403     {
404         $text .= $i . " =" . $specials{$i} . "\n";
405     }
406     $text .= "EXTRADIRS =";
407     foreach my $i (sort keys %specials) { $text .= sprintf " \@%s\@", $i; }
408     $text .= "\n\n";
409
410     # output the subdirs list
411
412     $text .= "# Subdir list\n\n";
413     $text .= "BASEDIRS =";
414     foreach my $dir (sort values %directories)
415     {
416         next if defined($special_dlls{$dir});  # skip special dlls
417         $text .= " \\\n\t" . $dir;
418     }
419
420     $text .= "\n\nIMPLIBSUBDIRS = \\\n\t";
421     $text .=  join " \\\n\t", sort values %staticlib_dirs;
422
423     $text .= "\n\nTESTSUBDIRS = \\\n\t";
424     $text .= join " \\\n\t", sort values %testdirs;
425
426     $text .=  "\n\nSUBDIRS = \\\n\t";
427     $text .= join " \\\n\t", "\$(BASEDIRS)", "\$(IMPLIBSUBDIRS)", "\$(TESTSUBDIRS)", sort keys %special_dlls;
428
429     $text .= "\n\nBUILDSUBDIRS   = \$(BASEDIRS) \$(EXTRADIRS) \$(TESTSUBDIRS)\n";
430     $text .= "INSTALLSUBDIRS = \$(BASEDIRS) \$(EXTRADIRS) \$(IMPLIBSUBDIRS)\n";
431     $text .= "DOCSUBDIRS     = \$(BASEDIRS) \$(EXTRADIRS)\n";
432
433     # output the all: target
434
435     my %targets = ();  # use a hash to get rid of duplicate target names
436     my %targets16 = ();
437     foreach my $mod (sort keys %directories)
438     {
439         next if defined($special_dlls{$directories{$mod}});  # skip special dlls
440         $targets{$mod . ".so"} = 1 if needs_symlink($mod, $directories{$mod});
441         next unless defined $altnames{$mod};
442         foreach my $i (sort @{$altnames{$mod}})
443         {
444             $targets16{$i . "16"} = $mod;
445         }
446     }
447
448     $text .= "\n\@MAKE_RULES\@\n\n";
449     $text .= "# Symbolic links\n\n";
450     $text .= "WIN16_FILES = \\\n";
451     $text .=  "\t" . join( " \\\n\t", sort keys %targets16 ) . "\n\n";
452     $text .= "SYMLINKS_SO = \\\n";
453     $text .= "\t\@WIN16_FILES\@ \\\n";
454     $text .= "\t" . join( " \\\n\t", sort keys %targets ) . "\n\n";
455     $text .= "# Main target\n\n";
456     $text .= "all: \$(BUILDSUBDIRS) symlinks\$(DLLEXT)\n\n";
457     $text .= ".PHONY: symlinks symlinks.so implib\n\n";
458     $text .= "symlinks.so: \$(SYMLINKS_SO)\n\n";
459     $text .= "symlinks: \$(BUILDSUBDIRS)\n\n";
460
461     # output the lib name -> directory rules
462
463     $text .= "# Map symlink name to the corresponding library\n\n";
464     foreach my $mod (sort keys %directories)
465     {
466         next unless needs_symlink($mod, $directories{$mod});
467         $text .= sprintf "%s.so: %s/%s.so\n", $mod, $directories{$mod}, $mod;
468         $text .= sprintf "\t\$(RM) \$@ && \$(LN_S) %s/%s.so \$@\n\n", $directories{$mod}, $mod;
469     }
470
471     $text .= "# Placeholders for 16-bit libraries\n\n";
472     foreach my $mod (sort keys %directories)
473     {
474         next unless defined $altnames{$mod};
475         $text .= sprintf "%s:\n", join(" ", map { $_ . "16"; } sort @{$altnames{$mod}});
476         $text .= sprintf "\techo \"%s\" >\$\@\n\n", $mod;
477     }
478
479     # output the import libraries rules
480
481     $text .= "# Import libraries\n\n";
482     $text .= "STATIC_IMPLIBEXT = \$(IMPLIBEXT:def=def.a)\n\n";
483
484     my @lib_symlinks = ();
485     foreach my $mod (sort keys %importlibs)
486     {
487         my $dir = $directories{$mod};
488         my $lib = $importlibs{$mod};
489         if ($lib ne "lib" . $dir) { push @lib_symlinks, $mod; }
490     }
491     $text .= "IMPORT_SYMLINKS =";
492     foreach my $mod (sort @lib_symlinks)
493     {
494         $text .= sprintf " \\\n\t%s.\$(IMPLIBEXT)", $importlibs{$mod};
495     }
496
497     $text .= "\n\nIMPORT_LIBS = \\\n\t\$(IMPORT_SYMLINKS)";
498     foreach my $mod (sort keys %staticlib_dirs)
499     {
500         $text .= sprintf " \\\n\t%s/%s", $staticlib_dirs{$mod}, $mod;
501     }
502     foreach my $mod (sort keys %importlibs)
503     {
504         my $dir = $directories{$mod};
505         my $def = $mod;
506         $def =~ s/\.(dll|drv)$//;
507         $text .= sprintf " \\\n\t%s/lib%s.\$(IMPLIBEXT)", $dir, $def;
508         next unless defined $static_implibs{$mod};
509         $text .= sprintf " \\\n\t%s/lib%s.\$(STATIC_IMPLIBEXT)", $dir, $def
510     }
511     $text .= "\n\n";
512     $text .= "implib: \$(IMPORT_LIBS)\n\n";
513
514     foreach my $mod (sort keys %importlibs)
515     {
516         my $dir = $directories{$mod};
517         my $lib = $importlibs{$mod};
518         my $spec = $mod;
519         $spec =~ s/\.dll$//;
520         $text .= sprintf "%s/%s.\$(IMPLIBEXT): %s/%s.spec \$(WINEBUILD)\n", $dir, $lib, $dir, $spec;
521         $text .= sprintf "\t\@cd %s && \$(MAKE) %s.\$(IMPLIBEXT)\n\n", $dir, $lib;
522         next unless $static_implibs{$mod};
523         $text .= sprintf "%s/%s.\$(STATIC_IMPLIBEXT): dummy\n", $dir, $lib, $dir, $spec;
524         $text .= sprintf "\t\@cd %s && \$(MAKE) %s.\$(STATIC_IMPLIBEXT)\n\n", $dir, $lib;
525     }
526     foreach my $mod (sort @lib_symlinks)
527     {
528         my $dir = $directories{$mod};
529         my $lib = $importlibs{$mod} . ".\$(IMPLIBEXT)";
530         $text .= sprintf "%s: %s/%s\n", $lib, $dir, $lib;
531         $text .= sprintf "\t\$(RM) \$@ && \$(LN_S) %s/%s \$@\n\n", $dir, $lib;
532     }
533
534     $text .= "\$(BUILDSUBDIRS): \$(IMPORT_LIBS)\n";
535     $text .= "\$(INSTALLSUBDIRS:%=%/__install__) \$(INSTALLSUBDIRS:%=%/__install-lib__): \$(IMPORT_LIBS)\n\n";
536
537     # output the inter-dll dependencies and rules
538
539     $text .= "# Map library name to the corresponding directory\n\n";
540
541     foreach my $mod (sort keys %directories)
542     {
543         next unless needs_symlink($mod, $directories{$mod});
544         $text .= sprintf "%s/%s.so: %s\n", $directories{$mod}, $mod, $directories{$mod};
545     }
546     foreach my $mod (sort keys %staticlib_dirs)
547     {
548         $text .= sprintf "%s/%s: %s\n", $staticlib_dirs{$mod}, $mod, $staticlib_dirs{$mod};
549     }
550     $text .= "\n# Misc rules\n";
551
552     replace_in_file( "dlls/Makefile.in",
553                      '^# special configure-dependent targets',
554                      '^# Misc rules',
555                      $text );
556
557     # .gitignore file
558
559     foreach my $mod (sort @lib_symlinks)
560     {
561         push @ignores, "dlls/$importlibs{$mod}.def";
562     }
563     foreach my $mod (sort keys %directories)
564     {
565         next unless defined $altnames{$mod};
566         push @ignores, map { "dlls/" . $_ . "16"; } @{$altnames{$mod}};
567     }
568     foreach my $mod (sort keys %importlibs)
569     {
570         my $dir = $directories{$mod};
571         my $def = $mod;
572         $def =~ s/\.(dll|drv)$//;
573         push @ignores, "dlls/$dir/lib$def.def";
574     }
575
576     return @ignores;
577 }
578
579
580 ################################################################
581 # update programs/Makefile.in
582
583 sub update_progs(@)
584 {
585     my (@subdirs, @install_subdirs, @install_progs);
586
587     my @ignores = ();
588
589     foreach my $make (@_)
590     {
591         my %makefile = %{$makefiles{$make}};
592         my $module = $makefile{"MODULE"};
593         (my $dir = $make) =~ s/^programs\/(.*)\/Makefile$/$1/;
594         die "Invalid module $module in $make" unless "$dir.exe" eq $module;
595         next if defined $makefile{"=skip"};
596         push @subdirs, $dir;
597         push @ignores, "programs/$dir/$dir";
598         push @install_subdirs, $dir unless $dont_install{$dir};
599         push @install_progs, $dir if $bin_install{$dir};
600     }
601
602     replace_in_file( "programs/Makefile.in", '^SUBDIRS\s*=', '^INSTALLDIRS',
603                      "SUBDIRS = \\\n\t",
604                      join( " \\\n\t", @subdirs ),
605                      "\n\n# Sub-directories to run make install into\nINSTALLSUBDIRS = \\\n\t",
606                      join( " \\\n\t", @install_subdirs ),
607                      "\n\n# Programs to install in bin directory\nINSTALLPROGS = \\\n\t",
608                      join( " \\\n\t", @install_progs ),
609                      "\n\nINSTALLDIRS = \$(DESTDIR)\$(bindir)\n" );
610
611     return @ignores;
612 }
613
614
615 ################################################################
616 # update the main .gitignore
617
618 sub update_gitignore(@)
619 {
620     my @ignores = values %makerules;
621
622     foreach my $make (@makefiles)
623     {
624         my %makefile = %{$makefiles{$make}};
625         my $dir = $makefile{"=dir"};
626         if (defined $makefile{"MANPAGES"})
627         {
628             push @ignores, map { $dir . $_; } @{$makefile{"MANPAGES"}};
629         }
630         if (defined $makefile{"PROGRAMS"})
631         {
632             push @ignores, map { s/\$\(EXEEXT\)//; $dir . $_; } @{$makefile{"PROGRAMS"}};
633         }
634     }
635
636     # prepend a slash to paths that don't have one
637     @ignores = map { $_ =~ s/^([^\/]+)$/\/$1/; $_; } @ignores;
638
639     push @ignores, @_;
640
641     replace_in_file( ".gitignore", undef, undef,
642                      "# Automatically generated by make_makefiles; DO NOT EDIT!!\n",
643                      join("\n", sort @ignores), "\n" );
644 }
645
646
647 update_makefiles( @makefiles );
648 push @ignores, update_ignores( @makefiles );
649 push @ignores, update_winetest( @makefiles );
650 push @ignores, update_dlls( sort grep /^dlls\//, @makefiles );
651 push @ignores, update_progs( sort grep /^programs\/.*\/Makefile$/, @makefiles );
652 update_gitignore( @ignores );