summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f8f51d8..762d42b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,20 @@ LUA_VER := 5.1
INST_BASE := /usr/local
INST_ROOT := $(DESTDIR)$(INST_BASE)/share/lua/$(LUA_VER)
+C_INST_ROOT := $(DESTDIR)$(INST_BASE)/lib/lua/$(LUA_VER)
MOD_FILES := $(patsubst %,%.lua,$(subst .,/,$(MODULES)))
-install:
+install: cmodule
mkdir -p $(INST_ROOT)/gall
for MOD in $(sort $(MOD_FILES)); do \
cp lib/$${MOD} $(INST_ROOT)/$${MOD}; \
done
+ if test -e lib/gall/ll/git2.so; then \
+ mkdir -p $(C_INST_ROOT)/gall/ll; \
+ cp lib/gall/ll/git2.so $(C_INST_ROOT)/gall/ll/; \
+ fi
+
LUA := LUA_CPATH="$(shell pwd)/lib/?.so;;" LUA_PATH="$(shell pwd)/lib/?.lua;$(shell pwd)/extras/luacov/src/?.lua;;" lua$(LUA_VER)