Changeset 591 for trunk/src/gmake/job.c


Ignore:
Timestamp:
Nov 24, 2006, 9:22:49 PM (19 years ago)
Author:
bird
Message:

Added --pretty-command-printing for simplifying makefile debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/job.c

    r535 r591  
    11341134     can log the working directory before the command's own error messages
    11351135     appear.  */
    1136 
    1137   message (0, (just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag))
    1138            ? "%s" : (char *) 0, p);
     1136#ifdef CONFIG_PRETTY_COMMAND_PRINTING
     1137  if (   pretty_command_printing
     1138      && (just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag))
     1139      && argv[0][0] != '\0')
     1140    {
     1141      unsigned i;
     1142      for (i = 0; argv[i]; i++)
     1143        message (0, "%s'%s'%s", i ? "\t" : "> ", argv[i], argv[i + 1] ? " \\" : "");
     1144    }
     1145  else
     1146#endif /* CONFIG_PRETTY_COMMAND_PRINTING */
     1147    message (0, (just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag))
     1148             ? "%s" : (char *) 0, p);
    11391149
    11401150  /* Tell update_goal_chain that a command has been started on behalf of
Note: See TracChangeset for help on using the changeset viewer.