Prefer BSDmakefile over makefile and Makefile.
Submitted by: jmallett Obtained from: OpenBSD
This commit is contained in:
parent
d032baf75b
commit
acd36d8aff
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user