1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00
Volker Lendecke d67e18ee37 Remove the dependency on $(abspath) in makefiles
This is not around before GNU make 3.81, for me this fixes the build
on GNU make 3.80

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit c85a3632623184cb97c2e8567ca77834e81070a4)
2008-06-19 14:22:57 +02:00

18 lines
575 B
Perl
Executable File

#!/usr/bin/perl
use File::Basename;
use Cwd 'getcwd';
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) " . getcwd() . "/\$(heimdalsrcdir)/$file $source\n\n";
print "clean:: \n";
print "\t\@rm -f $header $source\n\n";