aboutsummaryrefslogtreecommitdiff
path: root/Lua/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-23 21:19:39 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-23 21:19:39 -0700
commit3de6de1ffa5e09314d6f283b6f5af3b07bcf88ed (patch)
tree9052554e856096de0ecac43d079a89733f0ff47a /Lua/Makefile
parent0ec89315b43b3adc5b90fe3ab4a778aea6b0e4ea (diff)
Added builtins for lua library
Diffstat (limited to 'Lua/Makefile')
-rw-r--r--Lua/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lua/Makefile b/Lua/Makefile
index d67289e..c729821 100644
--- a/Lua/Makefile
+++ b/Lua/Makefile
@@ -36,12 +36,15 @@ all: bp.so
clean:
rm -f lbp.o bp.so
-lbp.o: lbp.c
+lbp.o: lbp.c builtins.h
$(CC) -c $(ALL_FLAGS) -o $@ $<
bp.so: lbp.o ../pattern.o ../utils.o ../utf8.o ../match.o ../definitions.o
$(MAKESO) -o $@ $^
+builtins.h: ../grammars/builtins.bp
+ sed 's/\\/\\\\/g;s/"/\\"/g;s/ /\\t/g;s/^/"/;s/$$/\\n"/' $< >$@
+
test: bp.so
$(LUA) test.lua