diff options
| author | Michael Forney <mforney@mforney.org> | 2020-01-29 13:56:48 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-01-29 22:14:33 -0800 |
| commit | 051963c7fee2c453d086c6792282f4c299bdf68c (patch) | |
| tree | 7a754ba30a144443de86c080881985f6df2913aa /pkg/ncurses | |
| parent | 35ec1d214359c035a45c4c51c1072f819f421894 (diff) | |
Add support for building multiple configurations
Now, you can build in separate directories per configuration:
mkdir foo
(cd foo && ../setup.lua)
samu -C foo
Diffstat (limited to 'pkg/ncurses')
| -rw-r--r-- | pkg/ncurses/gen.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/ncurses/gen.lua b/pkg/ncurses/gen.lua index ddfdc58b..27513a33 100644 --- a/pkg/ncurses/gen.lua +++ b/pkg/ncurses/gen.lua @@ -12,8 +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'}, {'$dir/headers', '$outdir/names.c'}) - exe('make_hash', {'ncurses/tinfo/make_hash.c'}, {'$dir/headers', '$outdir/hashsize.h'}) + exe('make_keys', {'ncurses/tinfo/make_keys.c'}, {'$gendir/headers', '$outdir/names.c'}) + exe('make_hash', {'ncurses/tinfo/make_hash.c'}, {'$gendir/headers', '$outdir/hashsize.h'}) end) build('sed', '$outdir/curses.head', {'$srcdir/include/curses.h.in', '|', '$dir/subst.sed'}, { @@ -93,7 +93,7 @@ pkg.hdrs = { install=true, } pkg.deps = { - '$dir/headers', + '$gendir/headers', '$outdir/hashsize.h', '$outdir/init_keytry.h', '$outdir/ncurses_def.h', |
