From 756bf857f9cc175935659d123763fbbc7d23ed53 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 15 Apr 2016 10:12:51 -0700 Subject: 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. --- setup.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=() } -- cgit v1.2.3