summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-06-27 22:20:55 -0700
committerMichael Forney <mforney@mforney.org>2016-06-27 22:22:04 -0700
commit89f46c9ac2603c0f951d11080d2e824a9bd337f1 (patch)
tree0e1ac70086cf1434a2bbe5bb2d4684c8c2fd5b69
parent07363d93857cddfba7179aaef4bc8bb5e7467c29 (diff)
Don't write fetch rule if no sources are used
-rw-r--r--ninja.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ninja.rc b/ninja.rc
index 8cdcda5a..b0064d29 100644
--- a/ninja.rc
+++ b/ninja.rc
@@ -156,7 +156,8 @@ fn sym {
fn fetch {
allsrcs=`{printf %s\n $allsrcs | sort -u}
- build $"allsrcs fetch$1 '|' '$dir'/.rev
+ if(! ~ $#allsrcs 0) build $"allsrcs fetch$1 '|' '$dir'/.rev
+ status=()
}
status=()