diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-15 10:12:51 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-15 10:12:55 -0700 |
| commit | 756bf857f9cc175935659d123763fbbc7d23ed53 (patch) | |
| tree | 75d27d23e6d1e5b94aa8eae7f85c9c725b73c1a8 | |
| parent | 5ee98202b2bc552af8b0a5246781cc9f0508c1b8 (diff) | |
Also recurse if the subdirectory has no local.ninja
In this case, ninja will not know how to rebuild local.ninja.
This allows adding new subdirectories to gen.rc and just running
'ninja', rather than requiring ./setup.rc in between.
| -rwxr-xr-x | setup.rc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ fn subgen { gen_inputs=( $gen_inputs '$outdir'/$1/gen.stamp ) tree_inputs=( $tree_inputs '$outdir'/$1/root.tree ) tree_perms=( $tree_perms '$outdir'/$1/root.perms ) - if(~ $recurse 1) @ gen $1 & + if(~ $recurse 1 || ! [ -f $1/local.ninja ]) @ gen $1 & status=() } |
