summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 22:45:32 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 22:50:04 +0100
commitec38f5a84f950bf301d49d94facc8e841b7237bb (patch)
treec9a2024c55e4a2453532abd3e802411bfe5cdd66
parentd4cac49662d0e43b32fec5f6108951ece507e94d (diff)
downloadgall-ec38f5a84f950bf301d49d94facc8e841b7237bb.tar.gz
Support installation of git2.so
-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)