summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-04-13 12:18:00 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-04-13 12:18:00 +0000
commit664a5a88d4cf52d5e7b6811b9f5feebfa51a7199 (patch)
treef3131d92f7b4297b0ccdf24511ea5c8738148ef5
parent9b24805230a3188cc043ba69f976facab732ccbd (diff)
Notes
-rw-r--r--usr.bin/make/job.c8
-rw-r--r--usr.bin/make/job.h2
-rw-r--r--usr.bin/make/main.c3
-rw-r--r--usr.bin/make/make.11
-rw-r--r--usr.bin/make/make.c2
5 files changed, 9 insertions, 7 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index ed1ee089aa42..bf98c9195598 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -83,7 +83,7 @@ __FBSDID("$FreeBSD$");
* the line as a shell specification. Returns
* FAILURE if the spec was incorrect.
*
- * Job_End Perform any final processing which needs doing.
+ * Job_Finish Perform any final processing which needs doing.
* This includes the execution of any commands
* which have been/were attached to the .END
* target. It should only be called when the
@@ -501,7 +501,7 @@ JobCmpRmtID(job, rmtID)
* job to be commands to be executed once the entire graph has been
* made and return non-zero to signal that the end of the commands
* was reached. These commands are later attached to the postCommands
- * node and executed by Job_End when all things are done.
+ * node and executed by Job_Finish when all things are done.
* This function is called from JobStart via Lst_ForEach.
*
* Results:
@@ -2915,7 +2915,7 @@ JobInterrupt(runINTERRUPT, signo)
/*
*-----------------------------------------------------------------------
- * Job_End --
+ * Job_Finish --
* Do final processing such as the running of the commands
* attached to the .END target.
*
@@ -2924,7 +2924,7 @@ JobInterrupt(runINTERRUPT, signo)
*-----------------------------------------------------------------------
*/
int
-Job_End()
+Job_Finish()
{
if (postCommands != NULL && !Lst_IsEmpty(postCommands->commands)) {
if (errors) {
diff --git a/usr.bin/make/job.h b/usr.bin/make/job.h
index d59bc1616597..98d7994bb013 100644
--- a/usr.bin/make/job.h
+++ b/usr.bin/make/job.h
@@ -229,7 +229,7 @@ void Job_Init(int, int);
Boolean Job_Full(void);
Boolean Job_Empty(void);
ReturnStatus Job_ParseShell(char *);
-int Job_End(void);
+int Job_Finish(void);
void Job_Wait(void);
void Job_AbortAll(void);
void JobFlagForMigration(int);
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index f3c2ca71e712..f99c0ba52328 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -748,7 +748,8 @@ main(argc, argv)
ln = Lst_Find(makefiles, (void *)NULL, ReadMakefile);
if (ln != NULL)
Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
- } else if (!ReadMakefile("makefile", NULL))
+ } else if (!ReadMakefile("BSDmakefile", NULL))
+ if (!ReadMakefile("makefile", NULL))
(void)ReadMakefile("Makefile", NULL);
(void)ReadMakefile(".depend", NULL);
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index f764be92acac..88bcf9aae9d6 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -60,6 +60,7 @@ Its input is a list of specifications
describing dependency relationships between the generation of
files and programs.
The first of
+.Ql Pa BSDmakefile ,
.Ql Pa makefile
and
.Ql Pa Makefile
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c
index d02a43595019..2db6635d2e0a 100644
--- a/usr.bin/make/make.c
+++ b/usr.bin/make/make.c
@@ -895,7 +895,7 @@ Make_Run (targs)
(void)MakeStartJobs();
}
- errors = Job_End();
+ errors = Job_Finish();
/*
* Print the final status of each target. E.g. if it wasn't made