summaryrefslogtreecommitdiff
path: root/core/awk
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-07-10 12:37:55 -0700
committerMichael Forney <mforney@mforney.org>2016-07-10 12:37:55 -0700
commit8d37aa716d4c4232343509ca9aae47bd249a750e (patch)
tree7a40b86d8f6819934b6814ef8140d4e30b35170b /core/awk
parent064f02c45807259d435082c93cd9dae4b1ea4621 (diff)
Delete sub and go back to subninja
Using a pipe allows us to specify the file name only once, but also runs in a subshell, so we lose the list of dependent sources. So, just go back to subninja, and make it slightly cleaner by assuming $dir.
Diffstat (limited to 'core/awk')
-rw-r--r--core/awk/gen.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/awk/gen.rc b/core/awk/gen.rc
index 750be952..a26385c3 100644
--- a/core/awk/gen.rc
+++ b/core/awk/gen.rc
@@ -7,7 +7,7 @@ build '$outdir'/ytab.h copy '$outdir'/gram.tab.h
include 'toolchain/$host_toolchain.ninja'
cflags -I '$outdir'
exe maketab -d '$outdir'/ytab.h maketab.c
-} | sub tools.ninja
+} >tools.ninja ; subninja tools.ninja
rule maketab '(cd $outdir && ./maketab) >$out.tmp && mv $out.tmp $out'
build '$outdir'/proctab.c maketab '|' '$outdir'/maketab