diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-17 00:03:34 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:23:06 -0700 |
| commit | ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch) | |
| tree | 48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/make/gen.lua | |
| parent | cb362b531d79708a259bbf070dee5104fd63df08 (diff) | |
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/make/gen.lua')
| -rw-r--r-- | pkg/make/gen.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/make/gen.lua b/pkg/make/gen.lua new file mode 100644 index 00000000..9809030c --- /dev/null +++ b/pkg/make/gen.lua @@ -0,0 +1,22 @@ +cflags{ + '-D HAVE_CONFIG_H', + '-I include', + '-I $dir', + '-I $srcdir', + '-I $srcdir/glob', +} + +lib('libglob.a', {'glob/glob.c', 'glob/fnmatch.c'}) + +exe('make', [[ + ar.c arscan.c commands.c default.c dir.c expand.c file.c + function.c getopt.c getopt1.c guile.c implicit.c job.c load.c + loadapi.c main.c misc.c posixos.c output.c read.c remake.c + rule.c signame.c strcache.c variable.c version.c vpath.c + hash.c remote-stub.c + libglob.a +]]) +file('bin/make', '755', '$outdir/make') +man{'make.1'} + +fetch 'git' |
