diff options
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) |