mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: we removed the existing Makefile even for ./configure --help
.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
This commit is contained in:
committed by
Yichun Zhang (agentzh)
parent
dd46539557
commit
2cc5ba6c91
9
util/configure
vendored
9
util/configure
vendored
@ -23,10 +23,6 @@ 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;
|
||||
@ -1368,6 +1364,11 @@ _EOC_
|
||||
}
|
||||
|
||||
sub gen_makefile {
|
||||
if (-f 'Makefile') {
|
||||
unlink 'Makefile' or
|
||||
die "ERROR: failed to remove existing Makefile: $!\n";
|
||||
}
|
||||
|
||||
open my $out, ">Makefile" or
|
||||
die "Cannot open Makefile for writing: $!\n";
|
||||
|
||||
|
Reference in New Issue
Block a user