master hovercats/oakiss / pkg / texi2mdoc / gen.lua
 1cflags{
 2        '-D __BEGIN_DECLS=',
 3        '-D __END_DECLS=',
 4        '-Wall',
 5}
 6
 7sub('host.ninja', function()
 8	toolchain(config.host)
 9	cflags{'-D __BEGIN_DECLS=', '-D __END_DECLS='}
10	set('outdir', '$outdir/host')
11	exe('texi2mdoc', {'main.c', 'util.c'})
12end)
13
14file('bin/texi2mdoc', '755', exe('texi2mdoc', {'main.c', 'util.c'}))
15man{'texi2mdoc.1'}
16
17fetch 'curl'