76 |
} |
} |
77 |
|
|
78 |
# Make sure it ends in a newline. |
# Make sure it ends in a newline. |
79 |
$makestring =~ /\n$/s or $makestring .= "\n"; |
$makestring && $makestring !~ /\n$/s and $makestring .= "\n"; |
80 |
|
|
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 |
91 |
|
|
92 |
# Do the same processing on $answer as we did on $makestring. |
# Do the same processing on $answer as we did on $makestring. |
93 |
|
|
94 |
$answer =~ /\n$/s or $answer .= "\n"; |
$answer && $answer !~ /\n$/s and $answer .= "\n"; |
95 |
$answer =~ s/#MAKEFILE#/$makefile/g; |
$answer =~ s/#MAKEFILE#/$makefile/g; |
96 |
$answer =~ s/#MAKE#/$make_name/g; |
$answer =~ s/#MAKE#/$make_name/g; |
97 |
|
|