1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/heimdal_build/et_deps.pl

17 lines
509 B
Perl
Raw Normal View History

#!/usr/bin/perl
use File::Basename;
my $file = shift;
my $dirname = shift;
my $basename = basename($file);
my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
print "$header $source: $file bin/compile_et\n";
print "\t\@echo \"Compiling error table $file\"\n";
print "\t\@\$(builddir)/heimdal_build/et_compile_wrapper.sh \$(srcdir) \$(builddir) $dirname bin/compile_et $file\n\n";
print "clean:: \n";
print "\t\@rm -f $header $source\n\n";