diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 22:45:32 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 22:50:04 +0100 |
commit | ec38f5a84f950bf301d49d94facc8e841b7237bb (patch) | |
tree | c9a2024c55e4a2453532abd3e802411bfe5cdd66 /Makefile | |
parent | d4cac49662d0e43b32fec5f6108951ece507e94d (diff) | |
download | gall-ec38f5a84f950bf301d49d94facc8e841b7237bb.tar.gz |
Support installation of git2.so
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |