commit: aef5e5c4da0fdec1a8a88dc916b69ecfb6e85427
parent 17d62b2bd74a92b6326823c3081ec5559357c533
Author: Michael Forney <mforney@mforney.org>
Date: Sat, 29 Jun 2019 14:22:47 -0700
ncurses: Build tools depend on generated headers
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/pkg/ncurses/gen.lua b/pkg/ncurses/gen.lua
@@ -12,15 +12,8 @@ cflags{'$common_cflags'}
sub('tools.ninja', function()
toolchain 'host'
cflags{'$common_cflags', '-D USE_BUILD_CC'}
- exe('make_keys', {'ncurses/tinfo/make_keys.c'}, {
- '$outdir/names.c',
- '$outdir/include/curses.h',
- '$outdir/include/ncurses_dll.h',
- })
- exe('make_hash', {'ncurses/tinfo/make_hash.c'}, {
- '$outdir/hashsize.h',
- '$outdir/include/curses.h',
- })
+ exe('make_keys', {'ncurses/tinfo/make_keys.c'}, {'$dir/headers', '$outdir/names.c'})
+ exe('make_hash', {'ncurses/tinfo/make_hash.c'}, {'$dir/headers', '$outdir/hashsize.h'})
end)
build('sed', '$outdir/curses.head', {'$srcdir/include/curses.h.in', '|', '$dir/subst.sed'}, {