linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 7cdd1d69bf3eba2b2517282d9500945f70304b39 parent ec9fc7f341a9df3bd4df22405fa7c7d988b47165 Author: Jul <jul@9o.is> Date: Mon, 25 Aug 2025 15:32:29 +0800 add deps inside netbsd-curses tic/nbperf Diffstat:
| M | ninja/functions.sh | | | 2 | +- |
| M | pkg/netbsd-curses/gen.sh | | | 12 | +++++------- |
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/ninja/functions.sh b/ninja/functions.sh @@ -115,7 +115,7 @@ lib() { deps() { _ninja_prefix srcs '$basedir/pkg' $* - _ninja_buffer_deps="$srcs" + _ninja_buffer_deps="$_ninja_buffer_deps $srcs" } headers() { diff --git a/pkg/netbsd-curses/gen.sh b/pkg/netbsd-curses/gen.sh @@ -15,12 +15,16 @@ cflags -D _XOPEN_SOURCE=700 \ -Wno-pedantic \ -Wno-type-limits +rule tic '$outdir/tools/tic $ticflags -o $out $in $terms' +rule nbperf 'TOOL_NBPERF=$outdir/tools/nbperf $in >$out' + tic() { build tic $outdir/$1 $srcdir/share/terminfo/terminfo '|' $outdir/tools/tic bind ticflags $2 if [ "${3-}" ]; then bind term $3 fi + deps $outdir/$1 } nbperf() { @@ -29,6 +33,7 @@ nbperf() { local src=$srcdir/$3 build nbperf $out $script $src '|' $script $outdir/tools/nbperf + deps $out } tools() { @@ -59,9 +64,6 @@ tools() { subninja tools -rule tic '$outdir/tools/tic $ticflags -o $out $in $terms' -rule nbperf 'TOOL_NBPERF=$outdir/tools/nbperf $in >$out' - tic deps/compiled_terms.c -Sx dumb tic deps/terminfo.cdb -x nbperf genhash deps/hash.c lib/libterminfo/term.h @@ -70,10 +72,6 @@ nbperf genthash deps/termcap_hash.c lib/libterminfo/termcap_map.c sync share/terminfo/terminfo sync lib/libterminfo/termcap_map.c -deps $outdir/deps/hash.c \ - $outdir/deps/termcap_hash.c \ - $outdir/deps/compiled_terms.c - headers lib/libcurses/curses.h \ lib/libcurses/unctrl.h \ lib/libterminfo/term.h \