From de4e4c63378c6fd0dc2504ddce5a13ee1e62504a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 19 Nov 2016 18:11:12 -0800 Subject: Drop phony/ prefix from phony targets There is little chance of collision between phony target names and actual sources checked in $dir. Additionally, it was a bit magical when processing phony sources because paths starting with $ or phony/ were left alone, while others were prepended with $outdir/. Also, where appropriate, use phony targets for dependencies instead of specifying all of them for every compile action. This makes the resulting ninja files easier to read, and might be more efficient too. --- setup.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.rc') diff --git a/setup.rc b/setup.rc index 150cf46c..ad72508b 100755 --- a/setup.rc +++ b/setup.rc @@ -21,7 +21,7 @@ ifs=' fn subgen { subninja '$dir'/$1/local.ninja - ninja_inputs=($ninja_inputs phony/'$dir'/$1/ninja) + ninja_inputs=($ninja_inputs '$dir'/$1/ninja) index_inputs=($index_inputs '$outdir'/$1/root.index) perms_inputs=($perms_inputs '$outdir'/$1/root.perms) if(~ $recurse 1 || ! [ -f $1/local.ninja ]) @ gen $1 & -- cgit v1.2.3