mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
./configure: always remove exising Makefile before trying to generate a new one.
This commit is contained in:
parent
37737082dd
commit
e0d777bb5d
6
util/configure
vendored
6
util/configure
vendored
@ -22,6 +22,10 @@ my $OS = $^O;
|
||||
|
||||
my $ngx_dir;
|
||||
|
||||
if (-f 'Makefile') {
|
||||
unlink 'Makefile' or die "ERROR: failed to remove existing Makefile: $!\n";
|
||||
}
|
||||
|
||||
for my $opt (@ARGV) {
|
||||
if ($opt =~ /^--platform=(.*)/) {
|
||||
$OS = $1;
|
||||
@ -304,7 +308,7 @@ sub shell ($@) {
|
||||
|
||||
unless ($dry_run) {
|
||||
system($cmd) == 0 or
|
||||
die "failed to run command: ", trim($cmd), "\n";
|
||||
die "ERROR: failed to run command: ", trim($cmd), "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user