diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | make.1 | 109 | ||||
-rw-r--r-- | tests/ChangeLog | 9 | ||||
-rwxr-xr-x | tests/run_make_tests.pl | 4 | ||||
-rw-r--r-- | tests/scripts/features/errors | 24 | ||||
-rw-r--r-- | tests/scripts/features/parallelism | 2 | ||||
-rw-r--r-- | tests/scripts/functions/wildcard | 10 | ||||
-rw-r--r-- | tests/scripts/targets/FORCE | 11 | ||||
-rw-r--r-- | tests/scripts/targets/PHONY | 11 | ||||
-rw-r--r-- | tests/scripts/targets/SILENT | 11 |
12 files changed, 112 insertions, 90 deletions
@@ -1,3 +1,8 @@ +2005-12-12 Paul D. Smith <psmith@gnu.org> + + * make.1: Fix some display errors and document all existing options. + Patch provided by Mike Frysinger <vapier@gentoo.org>. + 2005-12-11 Paul D. Smith <psmith@gnu.org> * implicit.c (pattern_search): If 2nd expansion is not set for @@ -1,6 +1,6 @@ GNU make NEWS -*-indented-text-*- History of user-visible changes. - 27 June 2005 + 12 December 2005 Copyright (C) 2002,2003,2004,2005 Free Software Foundation, Inc. See the end for copying conditions. @@ -10,7 +10,7 @@ manual, which is contained in this distribution as the file doc/make.texi. See the README file and the GNU make manual for instructions for reporting bugs. -Version 3.81beta3 +Version 3.81beta4 * GNU make is ported to OS/2. diff --git a/configure.in b/configure.in index 2fd545f..c438d57 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([GNU make],[3.81beta3],[bug-make@gnu.org]) +AC_INIT([GNU make],[3.81beta4],[bug-make@gnu.org]) AC_PREREQ(2.59) AC_REVISION([[$Id$]]) @@ -1,4 +1,4 @@ -.TH MAKE 1L "22 August 1989" "GNU" "LOCAL USER COMMANDS" +.TH MAKE 1 "22 August 1989" "GNU" "LOCAL USER COMMANDS" .SH NAME make \- GNU make utility to maintain groups of programs .SH SYNOPSIS @@ -6,16 +6,15 @@ make \- GNU make utility to maintain groups of programs [ .B \-f .I makefile -] [ option ] ... -target ... +] [ options ] ... [ targets ] ... .SH WARNING -This man page is an extract of the documentation of -.I GNU make . +This man page is an extract of the documentation of GNU +.IR make . It is updated only occasionally, because the GNU project does not use nroff. For complete, current documentation, refer to the Info file .B make.info which is made from the Texinfo source file -.BR make.texinfo . +.BR make.texi . .SH DESCRIPTION .LP The purpose of the @@ -25,7 +24,8 @@ pieces of a large program need to be recompiled, and issue the commands to recompile them. The manual describes the GNU implementation of .IR make , -which was written by Richard Stallman and Roland McGrath. +which was written by Richard Stallman and Roland McGrath, and is +currently maintained by Paul Smith. Our examples show C programs, since they are most common, but you can use .I make with any programming language whose compiler can be run with a @@ -106,13 +106,14 @@ or if the target does not exist. .SH OPTIONS .sp 1 .TP 0.5i -.B \-b -.TP 0.5i -.B \-m +.BR \-b , " \-m" These options are ignored for compatibility with other versions of .IR make . .TP 0.5i -.BI "\-C " dir +.BR \-B , " \-\-always\-make" +Unconditionally make all targets. +.TP 0.5i +\fB\-C\fR \fIdir\fR, \fB\-\-directory\fR=\fIdir\fR Change to directory .I dir before reading the makefiles or doing anything else. @@ -136,19 +137,42 @@ considered and which are applied---everything interesting about how .I make decides what to do. .TP 0.5i -.B \-e +.BI \-\-debug "[=FLAGS]" +Print debugging information in addition to normal processing. +If the +.I FLAGS +are omitted, then the behavior is the same as if +.B \-d +was specified. +.I FLAGS +may be +.I a +for all debugging output (same as using +.BR \-d ), +.I b +for basic debugging, +.I v +for more verbose basic debugging, +.I i +for showing implicit rules, +.I j +for details on invocation of commands, and +.I m +for debugging while remaking makefiles. +.TP 0.5i +.BR \-e , " \-\-environment\-overrides" Give variables taken from the environment precedence over variables from makefiles. .TP 0.5i -.BI "\-f " file ++\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR, \fB\-\-makefile\fR=\fIFILE\fR Use .I file as a makefile. .TP 0.5i -.B \-i +.BR \-i , " \-\-ignore\-errors" Ignore all errors in commands executed to remake files. .TP 0.5i -.BI "\-I " dir +\fB\-I\fR \fIdir\fR, \fB\-\-include\-dir\fR=\fIdir\fR Specifies a directory .I dir to search for included makefiles. @@ -169,8 +193,10 @@ preprocessor's .B \-I flag. .TP 0.5i -.BI "\-j " jobs -Specifies the number of jobs (commands) to run simultaneously. +\fB\-j\fR [\fIjobs\fR], \fB\-\-jobs\fR[=\fIjobs\fR] +Specifies the number of +.I jobs +(commands) to run simultaneously. If there is more than one .B \-j option, the last one is effective. @@ -180,25 +206,26 @@ option is given without an argument, .IR make will not limit the number of jobs that can run simultaneously. .TP 0.5i -.B \-k +.BR \-k , " \-\-keep\-going" Continue as much as possible after an error. While the target that failed, and those that depend on it, cannot be remade, the other dependencies of these targets can be processed all the same. .TP 0.5i -.B \-l -.TP 0.5i -.BI "\-l " load +\fB\-l\fR [\fIload\fR], \fB\-\-load\-average\fR[=\fIload\fR] Specifies that no new jobs (commands) should be started if there are others jobs running and the load average is at least .I load (a floating-point number). With no argument, removes a previous load limit. .TP 0.5i -.B \-n +.BR \-L , " \-\-check\-symlink\-times" +Use the latest mtime between symlinks and target. +.TP 0.5i +.BR \-n , " \-\-just\-print" , " \-\-dry\-run" , " \-\-recon" Print the commands that would be executed, but do not execute them. .TP 0.5i -.BI "\-o " file +\fB\-o\fR \fIfile\fR, \fB\-\-old\-file\fR=\fIfile\fR, \fB\-\-assume\-old\fR=\fIfile\fR Do not remake the file .I file even if it is older than its dependencies, and do not remake anything @@ -206,7 +233,7 @@ on account of changes in .IR file . Essentially the file is treated as very old and its rules are ignored. .TP 0.5i -.B \-p +.BR \-p , " \-\-print\-data\-base" Print the data base (rules and variable values) that results from reading the makefiles; then execute as usual or as otherwise specified. @@ -218,20 +245,23 @@ To print the data base without trying to remake any files, use .B \-p .BI \-f /dev/null. .TP 0.5i -.B \-q +.BR \-q , " \-\-question" ``Question mode''. Do not run any commands, or print anything; just return an exit status that is zero if the specified targets are already up to date, nonzero otherwise. .TP 0.5i -.B \-r -Eliminate use of the built-in implicit rules. +.BR \-r , " \-\-no\-builtin\-rules" +Eliminate use of the built\-in implicit rules. Also clear out the default list of suffixes for suffix rules. .TP 0.5i -.B \-s +.BR \-R , " \-\-no\-builtin\-variables" +Don't define any built\-in variables. +.TP 0.5i +.BR \-s , " \-\-silent" , " \-\-quiet" Silent operation; do not print the commands as they are executed. .TP 0.5i -.B \-S +.BR \-S , " \-\-no\-keep\-going" , " \-\-stop" Cancel the effect of the .B \-k option. @@ -245,20 +275,20 @@ via MAKEFLAGS or if you set .B \-k in MAKEFLAGS in your environment. .TP 0.5i -.B \-t +.BR \-t , " \-\-touch" Touch files (mark them up to date without really changing them) instead of running their commands. This is used to pretend that the commands were done, in order to fool future invocations of .IR make . .TP 0.5i -.B \-v +.BR \-v , " \-\-version" Print the version of the .I make program plus a copyright, a list of authors and a notice that there is no warranty. .TP 0.5i -.B \-w +.BR \-w , " \-\-print\-directory" Print a message containing the working directory before and after other processing. This may be useful for tracking down errors from complicated nests of @@ -266,7 +296,12 @@ recursive .I make commands. .TP 0.5i -.BI "\-W " file +.B \-\-no\-print\-directory +Turn off +.BR \-w , +even if it was turned on implicitly. +.TP 0.5i +\fB\-W\fR \fIfile\fR, \fB\-\-what\-if\fR=\fIfile\fR, \fB\-\-new\-file\fR=\fIfile\fR, \fB\-\-assume\-new\fR=\fIfile\fR Pretend that the target .I file has just been modified. @@ -281,11 +316,15 @@ command on the given file before running .IR make , except that the modification time is changed only in the imagination of .IR make . +.TP 0.5i +.B \-\-warn\-undefined\-variables +Warn when an undefined variable is referenced. .SH "SEE ALSO" .I "The GNU Make Manual" .SH BUGS See the chapter `Problems and Bugs' in -.I "The GNU Make Manual" . +.IR "The GNU Make Manual" . .SH AUTHOR This manual page contributed by Dennis Morse of Stanford University. -It has been reworked by Roland McGrath. +It has been reworked by Roland McGrath. Further updates contributed by +Mike Frysinger. diff --git a/tests/ChangeLog b/tests/ChangeLog index 9320597..480d2fc 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,12 @@ +2005-12-12 Paul D. Smith <psmith@gnu.org> + + * scripts/features/parallelism, scripts/functions/wildcard, + scripts/targets/FORCE, scripts/targets/PHONY, + scripts/targets/SILENT: Use the default setting for + $delete_command. Fixes bug #15085. + + * run_make_tests.pl (get_this_pwd) [VMS]: Use -no_ask with delete_file. + 2005-12-11 Paul D. Smith <psmith@gnu.org> * scripts/misc/general4: Test implicit rules with '$' in the diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index d51b72a..b7614e2 100755 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -183,11 +183,11 @@ sub print_help } sub get_this_pwd { - $delete_command = "rm"; + $delete_command = 'rm -f'; if ($has_POSIX) { $__pwd = POSIX::getcwd(); } elsif ($vos) { - $delete_command = "delete_file"; + $delete_command = "delete_file -no_ask"; $__pwd = `++(current_dir)`; } else { # No idea... just try using pwd as a last resort. diff --git a/tests/scripts/features/errors b/tests/scripts/features/errors index 253f50f..e372fe0 100644 --- a/tests/scripts/features/errors +++ b/tests/scripts/features/errors @@ -1,3 +1,5 @@ +# -*-perl-*- + $description = "The following tests the -i option and the '-' in front of \n" ."commands to test that make ignores errors in these commands\n" ."and continues processing."; @@ -14,11 +16,11 @@ $details = "This test runs two makes. The first runs on a target with a \n" if ($vos) { - $delete_command = "delete_file"; + $rm_command = "delete_file"; } else { - $delete_command = "rm"; + $rm_command = "rm"; } open(MAKEFILE,"> $makefile"); @@ -26,11 +28,11 @@ open(MAKEFILE,"> $makefile"); # The Contents of the MAKEFILE ... print MAKEFILE "clean:\n" - ."\t-$delete_command cleanit\n" - ."\t$delete_command foo\n" + ."\t-$rm_command cleanit\n" + ."\t$rm_command foo\n" ."clean2: \n" - ."\t$delete_command cleanit\n" - ."\t$delete_command foo\n"; + ."\t$rm_command cleanit\n" + ."\t$rm_command foo\n"; # END of Contents of MAKEFILE @@ -39,16 +41,16 @@ close(MAKEFILE); &touch("foo"); unlink("cleanit"); -$cleanit_error = `sh -c "$delete_command cleanit 2>&1"`; +$cleanit_error = `sh -c "$rm_command cleanit 2>&1"`; $delete_error_code = $? >> 8; # TEST #1 # ------- -$answer = "$delete_command cleanit\n" +$answer = "$rm_command cleanit\n" . $cleanit_error ."$make_name: [clean] Error $delete_error_code (ignored)\n" - ."$delete_command foo\n"; + ."$rm_command foo\n"; &run_make_with_options($makefile,"",&get_logfile); @@ -72,10 +74,10 @@ if (!$vos) # TEST #2 # ------- -$answer = "$delete_command cleanit\n" +$answer = "$rm_command cleanit\n" . $cleanit_error ."$make_name: [clean2] Error $delete_error_code (ignored)\n" - ."$delete_command foo\n"; + ."$rm_command foo\n"; &run_make_with_options($makefile,"clean2 -i",&get_logfile); diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism index c75f436..6bde30f 100644 --- a/tests/scripts/features/parallelism +++ b/tests/scripts/features/parallelism @@ -18,11 +18,9 @@ if (!$parallel_jobs) { } if ($vos) { - $delete_command = "delete_file -no_ask"; $sleep_command = "sleep -seconds"; } else { - $delete_command = "rm -f"; $sleep_command = "sleep"; } diff --git a/tests/scripts/functions/wildcard b/tests/scripts/functions/wildcard index d7a50aa..d61384e 100644 --- a/tests/scripts/functions/wildcard +++ b/tests/scripts/functions/wildcard @@ -13,16 +13,6 @@ test echo's all files which match '?.example' and [a-z0-9].example. Lastly we clean up all of the files using the '*' wildcard as in the first test"; -if ($vos) -{ - $delete_command = "delete_file -no_ask"; -} -else -{ - $delete_command = "rm"; -} - - open(MAKEFILE,"> $makefile"); # The Contents of the MAKEFILE ... diff --git a/tests/scripts/targets/FORCE b/tests/scripts/targets/FORCE index befb326..eb8f251 100644 --- a/tests/scripts/targets/FORCE +++ b/tests/scripts/targets/FORCE @@ -1,16 +1,9 @@ +# -*-perl-*- + $description = "The following tests rules without Commands or Dependencies."; $details = "If the rule ...\n"; -if ($vos) -{ - $delete_command = "delete_file"; -} -else -{ - $delete_command = "rm"; -} - open(MAKEFILE,"> $makefile"); # The Contents of the MAKEFILE ... diff --git a/tests/scripts/targets/PHONY b/tests/scripts/targets/PHONY index dd46b3f..c8e2110 100644 --- a/tests/scripts/targets/PHONY +++ b/tests/scripts/targets/PHONY @@ -1,3 +1,5 @@ +# -*-perl-*- + $description = "The following tests the use of a PHONY target. It makes\n" ."sure that the rules under a target get executed even if\n" ."a filename of the same name of the target exists in the\n" @@ -8,15 +10,6 @@ $details = "This makefile in this test declares the target clean to be a \n" ."directory. Although this file exists, the rule under the target\n" ."clean should still execute because of it's phony status."; -if ($vos) -{ - $delete_command = "delete_file"; -} -else -{ - $delete_command = "rm"; -} - $example = "EXAMPLE_FILE"; open(MAKEFILE,"> $makefile"); diff --git a/tests/scripts/targets/SILENT b/tests/scripts/targets/SILENT index 5f9a1db..4bb0a0f 100644 --- a/tests/scripts/targets/SILENT +++ b/tests/scripts/targets/SILENT @@ -1,3 +1,5 @@ +# -*-perl-*- + $description = "The following tests the special target .SILENT. By simply\n" ."mentioning this as a target, it tells make not to print\n" ."commands before executing them."; @@ -5,15 +7,6 @@ $description = "The following tests the special target .SILENT. By simply\n" $details = "This test is the same as the clean test except that it should\n" ."not echo its command before deleting the specified file.\n"; -if ($vos) -{ - $delete_command = "delete_file"; -} -else -{ - $delete_command = "rm"; -} - $example = "EXAMPLE_FILE"; open(MAKEFILE,"> $makefile"); |