summaryrefslogtreecommitdiff
path: root/pkg/ncurses/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-29 14:22:47 -0700
committerMichael Forney <mforney@mforney.org>2019-06-29 14:22:47 -0700
commitaef5e5c4da0fdec1a8a88dc916b69ecfb6e85427 (patch)
tree002a1b186050e62cb1f9c29e49359b383fc46a91 /pkg/ncurses/gen.lua
parent17d62b2bd74a92b6326823c3081ec5559357c533 (diff)
ncurses: Build tools depend on generated headers
Diffstat (limited to 'pkg/ncurses/gen.lua')
-rw-r--r--pkg/ncurses/gen.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkg/ncurses/gen.lua b/pkg/ncurses/gen.lua
index e680344d..28769aae 100644
--- 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'}, {