1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/heimdal_build/et_deps.pl
Stefan Metzmacher f4140cfdb0 build: autogenerate heimdal basics
metze
(This used to be commit f19d2182b8)
2008-08-01 17:52:36 +02:00

18 lines
585 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 "basics:: $header\n";
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) \$(call abspath,\$(heimdalsrcdir)/$file) $source\n\n";
print "clean:: \n";
print "\t\@rm -f $header $source\n\n";