Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3aaa850 + 8b2797f commit 0168168Copy full SHA for 0168168
Makefile
@@ -13,14 +13,16 @@ export LUA_PATH
13
14
export LUA_CPATH = deps/lib/lua/$(LUA_VERSION)/?.so
15
16
-PCRE_DIR =
+ifdef PCRE_DIR
17
+LREXLIB_PCRE_FLAGS = PCRE_DIR=$(PCRE_DIR)
18
+endif
19
# Example for MacOS installed via Homebrew:
20
# PCRE_DIR = /opt/homebrew/Cellar/pcre/8.45
21
22
LUAROCKS = luarocks --lua-version=$(LUA_VERSION) --tree=deps
23
24
deps:
- $(LUAROCKS) install lrexlib-pcre PCRE_DIR=$(PCRE_DIR)
25
+ $(LUAROCKS) install lrexlib-pcre $(LREXLIB_PCRE_FLAGS)
26
$(LUAROCKS) install inspect
27
$(LUAROCKS) install net-url
28
$(LUAROCKS) install jsonschema
@@ -32,5 +34,3 @@ test: deps
32
34
.PHONY: clean
33
35
clean:
36
$(RM) -rf deps
-
0 commit comments