RULES: Expand @TOP@ and @ARCH@ in .plt files

Use this in Snippets.plt
This commit is contained in:
Andrew Johnson
2017-09-22 14:05:37 -05:00
parent c31b91e24c
commit 10849a0df3
2 changed files with 2 additions and 2 deletions

View File

@@ -380,7 +380,7 @@ endif
# If there's a perl test script (.plt) available, use it
%.t: ../%.plt
@$(RM) $@
$(CP) $< $@
$(EXPAND_TOOL) -t $(INSTALL_LOCATION) -a $(T_A) $< $@
# Test programs (.t files) must be written in Perl.
# Generate a perl program to exec the real test binary.

View File

@@ -19,7 +19,7 @@ sub mksnip {
}
sub assemble {
my @cmd = ( 'perl', '../../../src/tools/assembleSnippets.pl', '-o', "out$$" );
my @cmd = ( 'perl', '@TOP@/bin/@ARCH@/assembleSnippets.pl', '-o', "out$$" );
push @cmd, @_;
system(@cmd);
open(my $fh, '<', "out$$") or die "can't open out$$ : $!";