summaryrefslogtreecommitdiff
path: root/setup.rc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-04-15 10:12:51 -0700
committerMichael Forney <mforney@mforney.org>2016-04-15 10:12:55 -0700
commit756bf857f9cc175935659d123763fbbc7d23ed53 (patch)
tree75d27d23e6d1e5b94aa8eae7f85c9c725b73c1a8 /setup.rc
parent5ee98202b2bc552af8b0a5246781cc9f0508c1b8 (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.
Diffstat (limited to 'setup.rc')
-rwxr-xr-xsetup.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.rc b/setup.rc
index 81f787e3..15b1ef23 100755
--- a/setup.rc
+++ b/setup.rc
@@ -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=()
}