summaryrefslogtreecommitdiff
path: root/pkg/rc/gen.lua
blob: a0dde154e58da7f8ba0ee7309f25c36863e5ae1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cflags{
	'-Wpedantic',
	([['-D PREFIX="%s"']]):format(config.prefix),
}

exe('rc', {
	'code.c',
	'exec.c',
	'getflags.c',
	'glob.c',
	'here.c',
	'io.c',
	'lex.c',
	'pcmd.c',
	'pfnc.c',
	'simple.c',
	'subr.c',
	'trap.c',
	'tree.c',
	'var.c',
	'y.tab.c',
	'unix.c',
	'havefork.c',
	'prompt-null.c',
})
file('bin/rc', '755', '$outdir/rc')
man{'rc.1'}

file('lib/rcmain', '644', '$srcdir/rcmain.unix')

fetch 'git'