diff options
| author | Michael Forney <mforney@mforney.org> | 2016-07-15 19:17:48 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-07-16 14:23:20 -0700 |
| commit | 78c4cc0023cd0e9e6df03a07f396017da48e336c (patch) | |
| tree | 1d1e77577e197608136d9867e16ca1bbd2cdec7e /rules.ninja | |
| parent | b6392fac15793878df45a57d049a063b4e781e2c (diff) | |
Don't list git repository files as outputs
This way, ninja -t clean will work as expected.
Diffstat (limited to 'rules.ninja')
| -rw-r--r-- | rules.ninja | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.ninja b/rules.ninja index 0baf0e60..45821074 100644 --- a/rules.ninja +++ b/rules.ninja @@ -52,11 +52,11 @@ rule githash command = rc ./scripts/hash.rc $builddir/$repo.git $args $in >$out.tmp && mv $out.tmp $out rule gittree - command = rc ./scripts/tree.rc $builddir/$repo.git $repo_tag $in + command = rc ./scripts/tree.rc $builddir/$repo.git $repo_tag $in $out restat = 1 rule gitcommit - command = rc ./scripts/commit.rc $builddir/$repo.git $repo_branch $repo_tag + command = rc ./scripts/commit.rc $builddir/$repo.git $repo_branch $repo_tag $out rule gitarchive command = git -C $builddir/$repo.git archive -o $$PWD/$out $repo_tag |
