aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-19 11:41:50 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-19 11:41:50 +0200
commit4b5d98fbe78d6ba9057807e5384d49c3c427cf61 (patch)
treeeb9c691cdd8fc14d58783cae98a90ff6b81656fa
parent6183dc8923888d1873afcfad7c2b28e227299d3d (diff)
downloadsircbot-4b5d98fbe78d6ba9057807e5384d49c3c427cf61.tar.bz2
sircbot-4b5d98fbe78d6ba9057807e5384d49c3c427cf61.tar.xz
make: fix install dirs
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 81fde5d..56cb072 100644
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ endif
prefix ?= /usr/local
bindir ?= $(prefix)/bin
DESTDIR ?=
-LUA_LIBDIR ?= $(prefix)/lib/lua/5.1
-LUA_LUADIR ?= $(prefix)/share/lua/5.1
+LUA_LIBDIR ?= $(prefix)/lib/lua/$(LUA_VERSION)
+LUA_LUADIR ?= $(prefix)/share/lua/$(LUA_VERSION)
INSTALL ?= install
all: $(TARGETS)
@@ -49,7 +49,7 @@ install: $(TARGETS)
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) sircbot $(DESTDIR)$(bindir)
$(INSTALL) sircbot-send $(DESTDIR)$(bindir)
-ifneq (NOLUA,)
+
+install-lua:
$(INSTALL) -d $(DESTDIR)$(LUA_LIBDIR)
- $(INSTALL) sircbot.so $(DESTDIR)$(LUA_LIBDIR)
-endif
+ $(INSTALL) lua/$(LUA_VERSION)/sircbot.so $(DESTDIR)$(LUA_LIBDIR)