diff options
| author | Michael Forney <mforney@mforney.org> | 2016-11-19 18:11:12 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-11-20 16:14:20 -0800 |
| commit | de4e4c63378c6fd0dc2504ddce5a13ee1e62504a (patch) | |
| tree | 996c7ca19cea166be6b0f1cb2fa364c4e96d3e69 /core/perp | |
| parent | cd820c03fc5b00354fa5a444216726fc46a22a5d (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 'core/perp')
| -rw-r--r-- | core/perp/gen.rc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/perp/gen.rc b/core/perp/gen.rc index 21c628a8..870d8432 100644 --- a/core/perp/gen.rc +++ b/core/perp/gen.rc @@ -19,9 +19,9 @@ rule sysstr '$outdir/mksysstr $type >$out.tmp && mv $out.tmp $out' build '$outdir'/sysstr_errno.c.in sysstr '|' '$outdir'/mksysstr ; with type errno build '$outdir'/sysstr_signo.c.in sysstr '|' '$outdir'/mksysstr ; with type signo -phony internal_headers outvec_STDOUT.h rlimit_defs.c.in sysstr_^(errno signo)^.c.in +phony deps '$outdir'/^(outvec_STDOUT.h rlimit_defs.c.in sysstr_^(errno signo)^.c.in) -lib libasagna.a -d 'phony/$dir/internal_headers' lasagna/^(\ +lib libasagna.a -d '$dir'/deps lasagna/^(\ buf/buf_^(cmp copy fill ndx rcopy rndx)^.c\ cstr/cstr_^(cat chop cmp cmpi contains copy dup lcat lcpy len ltrim match matchi ncmp pos rpos rtrim trim vcat_ vcopy_ vlen_)^.c\ cdb/^(cdb_^(find cc clear close distance dynget dynread get hashpart init open read seq) cdbmk_^(add addioq addrec clear finish init _update))^.c\ |
