1
1
mirror of https://github.com/kanaka/mal.git synced 2024-07-15 01:20:29 +03:00

Add lrexlib-pcre through luarocks.

This commit is contained in:
Gabriel M 2020-05-15 16:05:10 -03:00
parent 783823f191
commit a62a56f535
2 changed files with 7 additions and 2 deletions

1
impls/.gitignore vendored
View File

@ -81,6 +81,7 @@ kotlin/.idea
kotlin/*.iml
lua/lib
lua/linenoise.so
lua/rex_pcre.so
lua/mal.lua
make/mal.mk
mal/mal.mal

View File

@ -23,13 +23,17 @@ mal: mal.lua
clean:
rm -f linenoise.so mal.lua mal
rm -f linenoise.so rex_pcre.so mal.lua mal
rm -rf lib
.PHONY: libs
libs: linenoise.so
libs: linenoise.so rex_pcre.so
linenoise.so:
luarocks install --tree=./ linenoise
ln -sf $$(find . -name linenoise.so) $@
rex_pcre.so:
luarocks install --tree=./ lrexlib-pcre
ln -sf $$(find . -name rex_pcre.so) $@