mirror of
https://github.com/mirror/make.git
synced 2025-01-27 21:00:22 +08:00
Update the make.1 man page.
Use rm -f instead of rm in the test scripts. Fixes bug #15085.
This commit is contained in:
parent
3bcb608bda
commit
4bd6db9df1
@ -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>
|
2005-12-11 Paul D. Smith <psmith@gnu.org>
|
||||||
|
|
||||||
* implicit.c (pattern_search): If 2nd expansion is not set for
|
* implicit.c (pattern_search): If 2nd expansion is not set for
|
||||||
|
4
NEWS
4
NEWS
@ -1,6 +1,6 @@
|
|||||||
GNU make NEWS -*-indented-text-*-
|
GNU make NEWS -*-indented-text-*-
|
||||||
History of user-visible changes.
|
History of user-visible changes.
|
||||||
27 June 2005
|
12 December 2005
|
||||||
|
|
||||||
Copyright (C) 2002,2003,2004,2005 Free Software Foundation, Inc.
|
Copyright (C) 2002,2003,2004,2005 Free Software Foundation, Inc.
|
||||||
See the end for copying conditions.
|
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
|
See the README file and the GNU make manual for instructions for
|
||||||
reporting bugs.
|
reporting bugs.
|
||||||
|
|
||||||
Version 3.81beta3
|
Version 3.81beta4
|
||||||
|
|
||||||
* GNU make is ported to OS/2.
|
* GNU make is ported to OS/2.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# 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_PREREQ(2.59)
|
||||||
AC_REVISION([[$Id$]])
|
AC_REVISION([[$Id$]])
|
||||||
|
109
make.1
109
make.1
@ -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
|
.SH NAME
|
||||||
make \- GNU make utility to maintain groups of programs
|
make \- GNU make utility to maintain groups of programs
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -6,16 +6,15 @@ make \- GNU make utility to maintain groups of programs
|
|||||||
[
|
[
|
||||||
.B \-f
|
.B \-f
|
||||||
.I makefile
|
.I makefile
|
||||||
] [ option ] ...
|
] [ options ] ... [ targets ] ...
|
||||||
target ...
|
|
||||||
.SH WARNING
|
.SH WARNING
|
||||||
This man page is an extract of the documentation of
|
This man page is an extract of the documentation of GNU
|
||||||
.I GNU make .
|
.IR make .
|
||||||
It is updated only occasionally, because the GNU project does not use nroff.
|
It is updated only occasionally, because the GNU project does not use nroff.
|
||||||
For complete, current documentation, refer to the Info file
|
For complete, current documentation, refer to the Info file
|
||||||
.B make.info
|
.B make.info
|
||||||
which is made from the Texinfo source file
|
which is made from the Texinfo source file
|
||||||
.BR make.texinfo .
|
.BR make.texi .
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.LP
|
.LP
|
||||||
The purpose of the
|
The purpose of the
|
||||||
@ -25,7 +24,8 @@ pieces of a large program need to be recompiled, and issue the commands to
|
|||||||
recompile them.
|
recompile them.
|
||||||
The manual describes the GNU implementation of
|
The manual describes the GNU implementation of
|
||||||
.IR make ,
|
.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
|
Our examples show C programs, since they are most common, but you can use
|
||||||
.I make
|
.I make
|
||||||
with any programming language whose compiler can be run with a
|
with any programming language whose compiler can be run with a
|
||||||
@ -106,13 +106,14 @@ or if the target does not exist.
|
|||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.sp 1
|
.sp 1
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-b
|
.BR \-b , " \-m"
|
||||||
.TP 0.5i
|
|
||||||
.B \-m
|
|
||||||
These options are ignored for compatibility with other versions of
|
These options are ignored for compatibility with other versions of
|
||||||
.IR make .
|
.IR make .
|
||||||
.TP 0.5i
|
.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
|
Change to directory
|
||||||
.I dir
|
.I dir
|
||||||
before reading the makefiles or doing anything else.
|
before reading the makefiles or doing anything else.
|
||||||
@ -136,19 +137,42 @@ considered and which are applied---everything interesting about how
|
|||||||
.I make
|
.I make
|
||||||
decides what to do.
|
decides what to do.
|
||||||
.TP 0.5i
|
.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
|
Give variables taken from the environment precedence
|
||||||
over variables from makefiles.
|
over variables from makefiles.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.BI "\-f " file
|
+\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR, \fB\-\-makefile\fR=\fIFILE\fR
|
||||||
Use
|
Use
|
||||||
.I file
|
.I file
|
||||||
as a makefile.
|
as a makefile.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-i
|
.BR \-i , " \-\-ignore\-errors"
|
||||||
Ignore all errors in commands executed to remake files.
|
Ignore all errors in commands executed to remake files.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.BI "\-I " dir
|
\fB\-I\fR \fIdir\fR, \fB\-\-include\-dir\fR=\fIdir\fR
|
||||||
Specifies a directory
|
Specifies a directory
|
||||||
.I dir
|
.I dir
|
||||||
to search for included makefiles.
|
to search for included makefiles.
|
||||||
@ -169,8 +193,10 @@ preprocessor's
|
|||||||
.B \-I
|
.B \-I
|
||||||
flag.
|
flag.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.BI "\-j " jobs
|
\fB\-j\fR [\fIjobs\fR], \fB\-\-jobs\fR[=\fIjobs\fR]
|
||||||
Specifies the number of jobs (commands) to run simultaneously.
|
Specifies the number of
|
||||||
|
.I jobs
|
||||||
|
(commands) to run simultaneously.
|
||||||
If there is more than one
|
If there is more than one
|
||||||
.B \-j
|
.B \-j
|
||||||
option, the last one is effective.
|
option, the last one is effective.
|
||||||
@ -180,25 +206,26 @@ option is given without an argument,
|
|||||||
.IR make
|
.IR make
|
||||||
will not limit the number of jobs that can run simultaneously.
|
will not limit the number of jobs that can run simultaneously.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-k
|
.BR \-k , " \-\-keep\-going"
|
||||||
Continue as much as possible after an error.
|
Continue as much as possible after an error.
|
||||||
While the target that failed, and those that depend on it, cannot
|
While the target that failed, and those that depend on it, cannot
|
||||||
be remade, the other dependencies of these targets can be processed
|
be remade, the other dependencies of these targets can be processed
|
||||||
all the same.
|
all the same.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-l
|
\fB\-l\fR [\fIload\fR], \fB\-\-load\-average\fR[=\fIload\fR]
|
||||||
.TP 0.5i
|
|
||||||
.BI "\-l " load
|
|
||||||
Specifies that no new jobs (commands) should be started if there are
|
Specifies that no new jobs (commands) should be started if there are
|
||||||
others jobs running and the load average is at least
|
others jobs running and the load average is at least
|
||||||
.I load
|
.I load
|
||||||
(a floating-point number).
|
(a floating-point number).
|
||||||
With no argument, removes a previous load limit.
|
With no argument, removes a previous load limit.
|
||||||
.TP 0.5i
|
.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.
|
Print the commands that would be executed, but do not execute them.
|
||||||
.TP 0.5i
|
.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
|
Do not remake the file
|
||||||
.I file
|
.I file
|
||||||
even if it is older than its dependencies, and do not remake anything
|
even if it is older than its dependencies, and do not remake anything
|
||||||
@ -206,7 +233,7 @@ on account of changes in
|
|||||||
.IR file .
|
.IR file .
|
||||||
Essentially the file is treated as very old and its rules are ignored.
|
Essentially the file is treated as very old and its rules are ignored.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-p
|
.BR \-p , " \-\-print\-data\-base"
|
||||||
Print the data base (rules and variable values) that results from
|
Print the data base (rules and variable values) that results from
|
||||||
reading the makefiles; then execute as usual or as otherwise
|
reading the makefiles; then execute as usual or as otherwise
|
||||||
specified.
|
specified.
|
||||||
@ -218,20 +245,23 @@ To print the data base without trying to remake any files, use
|
|||||||
.B \-p
|
.B \-p
|
||||||
.BI \-f /dev/null.
|
.BI \-f /dev/null.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-q
|
.BR \-q , " \-\-question"
|
||||||
``Question mode''.
|
``Question mode''.
|
||||||
Do not run any commands, or print anything; just return an exit status
|
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
|
that is zero if the specified targets are already up to date, nonzero
|
||||||
otherwise.
|
otherwise.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-r
|
.BR \-r , " \-\-no\-builtin\-rules"
|
||||||
Eliminate use of the built-in implicit rules.
|
Eliminate use of the built\-in implicit rules.
|
||||||
Also clear out the default list of suffixes for suffix rules.
|
Also clear out the default list of suffixes for suffix rules.
|
||||||
.TP 0.5i
|
.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.
|
Silent operation; do not print the commands as they are executed.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-S
|
.BR \-S , " \-\-no\-keep\-going" , " \-\-stop"
|
||||||
Cancel the effect of the
|
Cancel the effect of the
|
||||||
.B \-k
|
.B \-k
|
||||||
option.
|
option.
|
||||||
@ -245,20 +275,20 @@ via MAKEFLAGS or if you set
|
|||||||
.B \-k
|
.B \-k
|
||||||
in MAKEFLAGS in your environment.
|
in MAKEFLAGS in your environment.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-t
|
.BR \-t , " \-\-touch"
|
||||||
Touch files (mark them up to date without really changing them)
|
Touch files (mark them up to date without really changing them)
|
||||||
instead of running their commands.
|
instead of running their commands.
|
||||||
This is used to pretend that the commands were done, in order to fool
|
This is used to pretend that the commands were done, in order to fool
|
||||||
future invocations of
|
future invocations of
|
||||||
.IR make .
|
.IR make .
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-v
|
.BR \-v , " \-\-version"
|
||||||
Print the version of the
|
Print the version of the
|
||||||
.I make
|
.I make
|
||||||
program plus a copyright, a list of authors and a notice that there
|
program plus a copyright, a list of authors and a notice that there
|
||||||
is no warranty.
|
is no warranty.
|
||||||
.TP 0.5i
|
.TP 0.5i
|
||||||
.B \-w
|
.BR \-w , " \-\-print\-directory"
|
||||||
Print a message containing the working directory
|
Print a message containing the working directory
|
||||||
before and after other processing.
|
before and after other processing.
|
||||||
This may be useful for tracking down errors from complicated nests of
|
This may be useful for tracking down errors from complicated nests of
|
||||||
@ -266,7 +296,12 @@ recursive
|
|||||||
.I make
|
.I make
|
||||||
commands.
|
commands.
|
||||||
.TP 0.5i
|
.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
|
Pretend that the target
|
||||||
.I file
|
.I file
|
||||||
has just been modified.
|
has just been modified.
|
||||||
@ -281,11 +316,15 @@ command on the given file before running
|
|||||||
.IR make ,
|
.IR make ,
|
||||||
except that the modification time is changed only in the imagination of
|
except that the modification time is changed only in the imagination of
|
||||||
.IR make .
|
.IR make .
|
||||||
|
.TP 0.5i
|
||||||
|
.B \-\-warn\-undefined\-variables
|
||||||
|
Warn when an undefined variable is referenced.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.I "The GNU Make Manual"
|
.I "The GNU Make Manual"
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
See the chapter `Problems and Bugs' in
|
See the chapter `Problems and Bugs' in
|
||||||
.I "The GNU Make Manual" .
|
.IR "The GNU Make Manual" .
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
This manual page contributed by Dennis Morse of Stanford University.
|
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.
|
||||||
|
@ -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>
|
2005-12-11 Paul D. Smith <psmith@gnu.org>
|
||||||
|
|
||||||
* scripts/misc/general4: Test implicit rules with '$' in the
|
* scripts/misc/general4: Test implicit rules with '$' in the
|
||||||
|
@ -183,11 +183,11 @@ sub print_help
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub get_this_pwd {
|
sub get_this_pwd {
|
||||||
$delete_command = "rm";
|
$delete_command = 'rm -f';
|
||||||
if ($has_POSIX) {
|
if ($has_POSIX) {
|
||||||
$__pwd = POSIX::getcwd();
|
$__pwd = POSIX::getcwd();
|
||||||
} elsif ($vos) {
|
} elsif ($vos) {
|
||||||
$delete_command = "delete_file";
|
$delete_command = "delete_file -no_ask";
|
||||||
$__pwd = `++(current_dir)`;
|
$__pwd = `++(current_dir)`;
|
||||||
} else {
|
} else {
|
||||||
# No idea... just try using pwd as a last resort.
|
# No idea... just try using pwd as a last resort.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# -*-perl-*-
|
||||||
|
|
||||||
$description = "The following tests the -i option and the '-' in front of \n"
|
$description = "The following tests the -i option and the '-' in front of \n"
|
||||||
."commands to test that make ignores errors in these commands\n"
|
."commands to test that make ignores errors in these commands\n"
|
||||||
."and continues processing.";
|
."and continues processing.";
|
||||||
@ -14,11 +16,11 @@ $details = "This test runs two makes. The first runs on a target with a \n"
|
|||||||
|
|
||||||
if ($vos)
|
if ($vos)
|
||||||
{
|
{
|
||||||
$delete_command = "delete_file";
|
$rm_command = "delete_file";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$delete_command = "rm";
|
$rm_command = "rm";
|
||||||
}
|
}
|
||||||
|
|
||||||
open(MAKEFILE,"> $makefile");
|
open(MAKEFILE,"> $makefile");
|
||||||
@ -26,11 +28,11 @@ open(MAKEFILE,"> $makefile");
|
|||||||
# The Contents of the MAKEFILE ...
|
# The Contents of the MAKEFILE ...
|
||||||
|
|
||||||
print MAKEFILE "clean:\n"
|
print MAKEFILE "clean:\n"
|
||||||
."\t-$delete_command cleanit\n"
|
."\t-$rm_command cleanit\n"
|
||||||
."\t$delete_command foo\n"
|
."\t$rm_command foo\n"
|
||||||
."clean2: \n"
|
."clean2: \n"
|
||||||
."\t$delete_command cleanit\n"
|
."\t$rm_command cleanit\n"
|
||||||
."\t$delete_command foo\n";
|
."\t$rm_command foo\n";
|
||||||
|
|
||||||
# END of Contents of MAKEFILE
|
# END of Contents of MAKEFILE
|
||||||
|
|
||||||
@ -39,16 +41,16 @@ close(MAKEFILE);
|
|||||||
&touch("foo");
|
&touch("foo");
|
||||||
|
|
||||||
unlink("cleanit");
|
unlink("cleanit");
|
||||||
$cleanit_error = `sh -c "$delete_command cleanit 2>&1"`;
|
$cleanit_error = `sh -c "$rm_command cleanit 2>&1"`;
|
||||||
$delete_error_code = $? >> 8;
|
$delete_error_code = $? >> 8;
|
||||||
|
|
||||||
# TEST #1
|
# TEST #1
|
||||||
# -------
|
# -------
|
||||||
|
|
||||||
$answer = "$delete_command cleanit\n"
|
$answer = "$rm_command cleanit\n"
|
||||||
. $cleanit_error
|
. $cleanit_error
|
||||||
."$make_name: [clean] Error $delete_error_code (ignored)\n"
|
."$make_name: [clean] Error $delete_error_code (ignored)\n"
|
||||||
."$delete_command foo\n";
|
."$rm_command foo\n";
|
||||||
|
|
||||||
&run_make_with_options($makefile,"",&get_logfile);
|
&run_make_with_options($makefile,"",&get_logfile);
|
||||||
|
|
||||||
@ -72,10 +74,10 @@ if (!$vos)
|
|||||||
# TEST #2
|
# TEST #2
|
||||||
# -------
|
# -------
|
||||||
|
|
||||||
$answer = "$delete_command cleanit\n"
|
$answer = "$rm_command cleanit\n"
|
||||||
. $cleanit_error
|
. $cleanit_error
|
||||||
."$make_name: [clean2] Error $delete_error_code (ignored)\n"
|
."$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);
|
&run_make_with_options($makefile,"clean2 -i",&get_logfile);
|
||||||
|
|
||||||
|
@ -18,11 +18,9 @@ if (!$parallel_jobs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($vos) {
|
if ($vos) {
|
||||||
$delete_command = "delete_file -no_ask";
|
|
||||||
$sleep_command = "sleep -seconds";
|
$sleep_command = "sleep -seconds";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$delete_command = "rm -f";
|
|
||||||
$sleep_command = "sleep";
|
$sleep_command = "sleep";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
[a-z0-9].example. Lastly we clean up all of the files using
|
||||||
the '*' wildcard as in the first test";
|
the '*' wildcard as in the first test";
|
||||||
|
|
||||||
if ($vos)
|
|
||||||
{
|
|
||||||
$delete_command = "delete_file -no_ask";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$delete_command = "rm";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
open(MAKEFILE,"> $makefile");
|
open(MAKEFILE,"> $makefile");
|
||||||
|
|
||||||
# The Contents of the MAKEFILE ...
|
# The Contents of the MAKEFILE ...
|
||||||
|
@ -1,16 +1,9 @@
|
|||||||
|
# -*-perl-*-
|
||||||
|
|
||||||
$description = "The following tests rules without Commands or Dependencies.";
|
$description = "The following tests rules without Commands or Dependencies.";
|
||||||
|
|
||||||
$details = "If the rule ...\n";
|
$details = "If the rule ...\n";
|
||||||
|
|
||||||
if ($vos)
|
|
||||||
{
|
|
||||||
$delete_command = "delete_file";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$delete_command = "rm";
|
|
||||||
}
|
|
||||||
|
|
||||||
open(MAKEFILE,"> $makefile");
|
open(MAKEFILE,"> $makefile");
|
||||||
|
|
||||||
# The Contents of the MAKEFILE ...
|
# The Contents of the MAKEFILE ...
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# -*-perl-*-
|
||||||
|
|
||||||
$description = "The following tests the use of a PHONY target. It makes\n"
|
$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"
|
."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"
|
."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"
|
."directory. Although this file exists, the rule under the target\n"
|
||||||
."clean should still execute because of it's phony status.";
|
."clean should still execute because of it's phony status.";
|
||||||
|
|
||||||
if ($vos)
|
|
||||||
{
|
|
||||||
$delete_command = "delete_file";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$delete_command = "rm";
|
|
||||||
}
|
|
||||||
|
|
||||||
$example = "EXAMPLE_FILE";
|
$example = "EXAMPLE_FILE";
|
||||||
|
|
||||||
open(MAKEFILE,"> $makefile");
|
open(MAKEFILE,"> $makefile");
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# -*-perl-*-
|
||||||
|
|
||||||
$description = "The following tests the special target .SILENT. By simply\n"
|
$description = "The following tests the special target .SILENT. By simply\n"
|
||||||
."mentioning this as a target, it tells make not to print\n"
|
."mentioning this as a target, it tells make not to print\n"
|
||||||
."commands before executing them.";
|
."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"
|
$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";
|
."not echo its command before deleting the specified file.\n";
|
||||||
|
|
||||||
if ($vos)
|
|
||||||
{
|
|
||||||
$delete_command = "delete_file";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$delete_command = "rm";
|
|
||||||
}
|
|
||||||
|
|
||||||
$example = "EXAMPLE_FILE";
|
$example = "EXAMPLE_FILE";
|
||||||
|
|
||||||
open(MAKEFILE,"> $makefile");
|
open(MAKEFILE,"> $makefile");
|
||||||
|
Loading…
Reference in New Issue
Block a user