| Line | |
|---|
| 1 | #!/usr/bin/perl
|
|---|
| 2 |
|
|---|
| 3 | use File::Basename;
|
|---|
| 4 |
|
|---|
| 5 | my $file = shift;
|
|---|
| 6 | my $dirname = shift;
|
|---|
| 7 | my $basename = basename($file);
|
|---|
| 8 |
|
|---|
| 9 | my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
|
|---|
| 10 | my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
|
|---|
| 11 | print "basics:: $header\n";
|
|---|
| 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) \$(call abspath,\$(heimdalsrcdir)/$file) $source\n\n";
|
|---|
| 15 |
|
|---|
| 16 | print "clean:: \n";
|
|---|
| 17 | print "\t\@rm -f $header $source\n\n";
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.