summaryrefslogtreecommitdiff
path: root/setup.rc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-11-19 18:11:12 -0800
committerMichael Forney <mforney@mforney.org>2016-11-20 16:14:20 -0800
commitde4e4c63378c6fd0dc2504ddce5a13ee1e62504a (patch)
tree996c7ca19cea166be6b0f1cb2fa364c4e96d3e69 /setup.rc
parentcd820c03fc5b00354fa5a444216726fc46a22a5d (diff)
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.
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 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 &