5deabe82b547d87433b112bf62298fbb833d364b
[metze/samba/wip.git] / source / heimdal_build / et_deps.pl
1 #!/usr/bin/perl
2
3 use File::Basename;
4 use Cwd 'getcwd';
5
6 my $file = shift;
7 my $dirname = shift;
8 my $basename = basename($file);
9
10 my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
11 my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
12 print "$header $source: \$(heimdalsrcdir)/$file \$(ET_COMPILER)\n";
13 print "\t\@echo \"Compiling error table $file\"\n";
14 print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) " . getcwd() . "/\$(heimdalsrcdir)/$file $source\n\n";
15
16 print "clean:: \n";
17 print "\t\@rm -f $header $source\n\n";