31 |
#include "hash.h" |
#include "hash.h" |
32 |
|
|
33 |
|
|
34 |
|
/* Remember whether snap_deps has been invoked: we need this to be sure we |
35 |
|
don't add new rules (via $(eval ...)) afterwards. In the future it would |
36 |
|
be nice to support this, but it means we'd need to re-run snap_deps() or |
37 |
|
at least its functionality... it might mean changing snap_deps() to be run |
38 |
|
per-file, so we can invoke it after the eval... or remembering which files |
39 |
|
in the hash have been snapped (a new boolean flag?) and having snap_deps() |
40 |
|
only work on files which have not yet been snapped. */ |
41 |
|
int snapped_deps = 0; |
42 |
|
|
43 |
/* Hash table of files the makefile knows how to make. */ |
/* Hash table of files the makefile knows how to make. */ |
44 |
|
|
45 |
static unsigned long |
static unsigned long |
620 |
f = lookup_file (".NOTPARALLEL"); |
f = lookup_file (".NOTPARALLEL"); |
621 |
if (f != 0 && f->is_target) |
if (f != 0 && f->is_target) |
622 |
not_parallel = 1; |
not_parallel = 1; |
623 |
|
|
624 |
|
/* Remember that we've done this. */ |
625 |
|
snapped_deps = 1; |
626 |
} |
} |
627 |
|
|
628 |
/* Set the `command_state' member of FILE and all its `also_make's. */ |
/* Set the `command_state' member of FILE and all its `also_make's. */ |