mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
now we also test the generated makefiles in our test suite.
This commit is contained in:
8
util/configure
vendored
8
util/configure
vendored
@ -133,6 +133,7 @@ push @make_install_cmds, "cd build/$ngx_dir && "
|
||||
. "\$(MAKE) install DESTDIR=\$(DESTDIR)";
|
||||
|
||||
cd '../..'; # to the root
|
||||
#die "pwd: " .. `pwd`;
|
||||
|
||||
gen_makefile();
|
||||
|
||||
@ -513,8 +514,13 @@ sub gen_makefile {
|
||||
open my $out, ">Makefile" or
|
||||
die "Cannot open Makefile for writing: $!\n";
|
||||
|
||||
print $out ".PHONY: all install\n\n";
|
||||
|
||||
print $out "all:\n\t" . join("\n\t", @make_cmds) . "\n\n";
|
||||
print $out "install:\n\t" . join("\n\t", @make_install_cmds) . "\n";
|
||||
|
||||
print $out "install:\n\t" . join("\n\t", @make_install_cmds) . "\n\n";
|
||||
|
||||
print $out "clean:\n\trm -rf build\n";
|
||||
|
||||
close $out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user