logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 3319306c6c4ac09eefcdeb6c6524847c81933918
parent a9df93edd01b33e193c080b70c871509ec921f01
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 25 Sep 2017 19:20:53 -0700

Just prepend $outdir/ to -b rather than changing directory

Diffstat:

Mninja.lua2+-
Mrules.ninja2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ninja.lua b/ninja.lua @@ -343,7 +343,7 @@ function yacc(name, gram) gram = '$srcdir/'..gram end build('yacc', expand{'$outdir/', name, {'.tab.c', '.tab.h'}}, gram, { - yaccflags='-d -b '..name, + yaccflags='-d -b $outdir/'..name, }) end diff --git a/rules.ninja b/rules.ninja @@ -59,7 +59,7 @@ rule gzip command = gzip -c -9 -n <$in >$out.tmp && mv $out.tmp $out rule yacc - command = cd $outdir && yacc $yaccflags $$OLDPWD/$in + command = yacc $yaccflags $in rule sed command = sed $expr $in >$out.tmp && mv $out.tmp $out