Ignore:
Timestamp:
Nov 2, 2008, 6:43:17 AM (17 years ago)
Author:
bird
Message:

kmk: Created a custom hook into the update_file process for checking additional file dependencies like changes in the commands and such. It's call .MUST_MAKE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/commands.c

    r1993 r2024  
    4747
    4848void
     49#if defined(CONFIG_WITH_COMMANDS_FUNC) || defined (CONFIG_WITH_DOT_MUST_MAKE)
     50set_file_variables (struct file *file, int called_early)
     51#else
    4952set_file_variables (struct file *file)
     53#endif
    5054{
    5155  const struct dep *d;
     
    182186    DEFINE_VARIABLE ("%", 1, percent);
    183187#endif /* CONFIG_WITH_RDONLY_VARIABLE_VALUE */
     188
     189#if defined(CONFIG_WITH_COMMANDS_FUNC) || defined (CONFIG_WITH_DOT_MUST_MAKE)
     190  /* The $^, $+, $? and $| variables should not be set if we're called
     191     early by a .MUST_MAKE invocation or $(commands ).  */
     192  if (called_early)
     193    return;
     194#endif
    184195
    185196  /* Compute the values for $^, $+, $?, and $|.  */
     
    500511  initialize_file_variables (file, 0);
    501512
     513#if defined(CONFIG_WITH_COMMANDS_FUNC) || defined (CONFIG_WITH_DOT_MUST_MAKE)
     514  set_file_variables (file, 0 /* final call */);
     515#else
    502516  set_file_variables (file);
     517#endif
    503518
    504519  /* Start the commands running.  */
Note: See TracChangeset for help on using the changeset viewer.