Skip to content

Commit 6b430e2

Browse files
committed
Added --no-clean and updated usage.
1 parent e4dc9d2 commit 6b430e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ConfigureJVM.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
my %options;
2525
GetOptions(\%options, 'help!', 'prefix=s',
26-
'make-install!', 'makefile-timing!');
26+
'make-install!', 'makefile-timing!', 'no-clean!');
2727

2828
# Print help if it's requested
2929
if ($options{'help'}) {
@@ -85,7 +85,7 @@
8585
fill_template_file('tools/build/Makefile-JVM.in', 'Makefile', %config);
8686

8787
my $make = $config{'make'};
88-
{
88+
unless ($options{'no-clean'}) {
8989
no warnings;
9090
print "Cleaning up ...\n";
9191
if (open my $CLEAN, '-|', "$make clean") {
@@ -117,6 +117,9 @@ sub print_help {
117117
General Options:
118118
--help Show this text
119119
--prefix=dir Install files in dir
120+
--make-install Automatically run make & make install
121+
--makefile-timing Enable timing of individual makefile commands
122+
--no-clean Do not run make clean
120123
121124
Configure.pl also reads options from 'config.default' in the current directory.
122125
END

0 commit comments

Comments
 (0)