From ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 17 Sep 2017 00:03:34 -0700 Subject: Rewrite ninja generation scripts in Lua --- pkg/make/gen.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkg/make/gen.lua (limited to 'pkg/make/gen.lua') 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' -- cgit v1.2.3