diff options
| author | Michael Forney <mforney@mforney.org> | 2016-07-09 15:11:41 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-07-09 15:12:40 -0700 |
| commit | 7ca73fcd4ec225aa96fae37b2bb2a6f86174fdb0 (patch) | |
| tree | a30eca562d8125ffbae7a685a4f2256d50c6ca7a /ninja.rc | |
| parent | c44d68fe8527fce97c5bb8c2766fd16f8f0df4bc (diff) | |
Always emit fetch rule if specified
Diffstat (limited to 'ninja.rc')
| -rw-r--r-- | ninja.rc | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -169,18 +169,17 @@ fn sym { } fn fetch { + # Use a phony rule and stamp file to prevent ninja from making parent + # directories. + build '$outdir'/fetch.stamp fetch$1 '|' '$dir'/.rev + shift + if(! ~ $#* 0) { + *=''''$*'''' + with args $"* + } allsrcs=`{printf %s\n $allsrcs | sort -u} - if(! ~ $#allsrcs 0) { - # Use a phony rule and stamp file to prevent ninja from making - # parent directories. - build '$outdir'/fetch.stamp fetch$1 '|' '$dir'/.rev - shift - if(! ~ $#* 0) { - *=''''$*'''' - with args $"* - } + if(! ~ $#allsrcs 0) build $"allsrcs phony '$outdir'/fetch.stamp - } status=() } |
