81 |
# Replace @MAKEFILE@ with the makefile name and @MAKE@ with the path to |
# Replace @MAKEFILE@ with the makefile name and @MAKE@ with the path to |
82 |
# make |
# make |
83 |
$makestring =~ s/#MAKEFILE#/$makefile/g; |
$makestring =~ s/#MAKEFILE#/$makefile/g; |
84 |
|
$makestring =~ s/#MAKEPATH#/$mkpath/g; |
85 |
$makestring =~ s/#MAKE#/$make_name/g; |
$makestring =~ s/#MAKE#/$make_name/g; |
86 |
|
$makestring =~ s/#PWD#/$pwd/g; |
87 |
|
|
88 |
# Populate the makefile! |
# Populate the makefile! |
89 |
open(MAKEFILE, "> $makefile") || die "Failed to open $makefile: $!\n"; |
open(MAKEFILE, "> $makefile") || die "Failed to open $makefile: $!\n"; |
95 |
|
|
96 |
$answer && $answer !~ /\n$/s and $answer .= "\n"; |
$answer && $answer !~ /\n$/s and $answer .= "\n"; |
97 |
$answer =~ s/#MAKEFILE#/$makefile/g; |
$answer =~ s/#MAKEFILE#/$makefile/g; |
98 |
|
$answer =~ s/#MAKEPATH#/$mkpath/g; |
99 |
$answer =~ s/#MAKE#/$make_name/g; |
$answer =~ s/#MAKE#/$make_name/g; |
100 |
|
$answer =~ s/#PWD#/$pwd/g; |
101 |
|
|
102 |
&run_make_with_options($makefile, $options, &get_logfile(0), $err_code); |
&run_make_with_options($makefile, $options, &get_logfile(0), $err_code); |
103 |
&compare_output($answer, &get_logfile(1)); |
&compare_output($answer, &get_logfile(1)); |