1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00
Jelmer Vernooij 5c9f28d560 Simplify handling of source directory in et compile wrapper.
(This used to be commit 4e6fddda2e7d9e37f7b7ec99c5a58671f825a571)
2008-05-27 18:16:13 +02:00

17 lines
552 B
Perl
Executable File

#!/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: \$(heimdalsrcdir)/$file \$(ET_COMPILER)\n";
print "\t\@echo \"Compiling error table $file\"\n";
print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) \$(abspath \$(heimdalsrcdir)/$file) $source\n\n";
print "clean:: \n";
print "\t\@rm -f $header $source\n\n";