5 GetOptions("top-srcdir:s");
7 $my_topsrcdir = $opt_top_srcdir ? $opt_top_srcdir : "\$(top_srcdir)";
14 return !grep(/$testfile/, @ignorestuff);
17 print "# Generated automatically by wild-perl 0.1\n";
22 if ($line =~ /^ *nowildcard: *(.*)$/) {
24 @ignorelist = split (/ +/, $ignore);
25 foreach $i (@ignorelist) {
26 print "# ignoring wildcards for \`$i\'\n";
27 push @ignorestuff, $i; # concat ? uh?
28 print "IGNORE_WILDCARDS=$ignore";
32 } elsif ($line =~ /(.*)\$\(wildcard(.*)\)(.*)/) {
35 @expanded = glob ($wild);
37 @expanded = grep {ignore_query($_);} @expanded;
39 print $1 . join (' ', @expanded) . $3 . "\n";
46 print "\$(srcdir)/Makefile.am: \$(srcdir)/Makefile.am.wild\n" .
47 # "\t\$(PERL) $my_topsrcdir/bin/wild-perl --top-srcdir=\"\$(real_topsrcdir)\" < \$< > \$@";
48 "\t\$(PERL) $my_topsrcdir/bin/wild-perl < \$< > \$@\n";