mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-25 05:29:47 +00:00
Formerly main.c.~90~
This commit is contained in:
parent
2ef2fbe7a4
commit
aef2a1ccd0
1 changed files with 14 additions and 19 deletions
33
main.c
33
main.c
|
@ -26,8 +26,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
extern char *version_string;
|
extern char *version_string;
|
||||||
|
|
||||||
extern struct dep *read_all_makefiles ();
|
|
||||||
|
|
||||||
extern void print_variable_data_base ();
|
extern void print_variable_data_base ();
|
||||||
extern void print_dir_data_base ();
|
extern void print_dir_data_base ();
|
||||||
extern void print_rule_data_base ();
|
extern void print_rule_data_base ();
|
||||||
|
@ -920,7 +918,7 @@ main (argc, argv, envp)
|
||||||
any_remade |= (file_mtime_no_search (d->file)
|
any_remade |= (file_mtime_no_search (d->file)
|
||||||
!= makefile_mtimes[i]);
|
!= makefile_mtimes[i]);
|
||||||
}
|
}
|
||||||
else if (d->changed != 1)
|
else if (! (d->changed & RM_DONTCARE))
|
||||||
{
|
{
|
||||||
time_t mtime;
|
time_t mtime;
|
||||||
/* The update failed and this makefile was not
|
/* The update failed and this makefile was not
|
||||||
|
@ -934,23 +932,20 @@ main (argc, argv, envp)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* This makefile was not found at all. */
|
/* This makefile was not found at all. */
|
||||||
switch (d->changed)
|
if (! (d->changed & RM_DONTCARE))
|
||||||
{
|
{
|
||||||
case 0:
|
/* This is a makefile we care about. See how much. */
|
||||||
/* A normal makefile. We must die later. */
|
if (d->changed & RM_INCLUDED)
|
||||||
error ("Makefile `%s' was not found", dep_name (d));
|
/* An included makefile. We don't need
|
||||||
any_failed = 1;
|
to die, but we do want to complain. */
|
||||||
break;
|
error ("Included makefile `%s' was not found.",
|
||||||
case 1:
|
dep_name (d));
|
||||||
/* A makefile from the MAKEFILES variable.
|
else
|
||||||
We don't care. */
|
{
|
||||||
break;
|
/* A normal makefile. We must die later. */
|
||||||
case 2:
|
error ("Makefile `%s' was not found", dep_name (d));
|
||||||
/* An included makefile. We don't need
|
any_failed = 1;
|
||||||
to die, but we do want to complain. */
|
}
|
||||||
error ("Included makefile `%s' was not found.",
|
|
||||||
dep_name (d));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free ((char *) d);
|
free ((char *) d);
|
||||||
|
|
Loading…
Reference in a new issue