aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthefosk <marco@mashape.com>2015-11-13 15:41:08 -0800
committerthefosk <marco@mashape.com>2015-11-13 15:41:08 -0800
commit44c3d0908310cd2455a90cd8f2454712573b1902 (patch)
treed1ede7a64eccafe41458c7b392531e963060f6a7
parent4fd36f5ab51a9489422b0a37454595eba297e408 (diff)
downloadlua_uuid-44c3d0908310cd2455a90cd8f2454712573b1902.tar.gz
lua_uuid-44c3d0908310cd2455a90cd8f2454712573b1902.tar.bz2
lua_uuid-44c3d0908310cd2455a90cd8f2454712573b1902.zip
Updating Makefile and rockspec + version bump
-rw-r--r--Makefile5
-rw-r--r--lua_uuid-0.1-5.rockspec (renamed from lua_uuid-0.1-4.rockspec)14
2 files changed, 10 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index cb124b3..cf372f8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ LUA_PC ?= lua5.1
LUA_LIBS ?= $(shell pkg-config $(LUA_PC) --libs)
LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags)
-CFLAGS ?= -O3 -Wall -Werror
+CFLAGS ?= -O2 -Wall -Werror
all: lua_uuid.so
@@ -14,5 +14,8 @@ lua_uuid.so: lua_uuid.o test/lua_uuid_test.lua
$(CC) -shared lua_uuid.o $(LUA_LIBS) -o $@
$(LUA) test/lua_uuid_test.lua
+install: lua_uuid.so
+ cp lua_uuid.so $(INST_LIBDIR)
+
clean:
rm -f lua_uuid.so lua_uuid.o *.rock
diff --git a/lua_uuid-0.1-4.rockspec b/lua_uuid-0.1-5.rockspec
index 4408cd1..3dce9f6 100644
--- a/lua_uuid-0.1-4.rockspec
+++ b/lua_uuid-0.1-5.rockspec
@@ -1,8 +1,8 @@
package = "lua_uuid"
-version = "0.1-4"
+version = "0.1-5"
source = {
- url = "https://github.com/Mashape/lua-uuid/archive/0.1-4.tar.gz",
- dir = "lua-uuid-0.1-4"
+ url = "https://github.com/Mashape/lua-uuid/archive/0.1-5.tar.gz",
+ dir = "lua-uuid-0.1-5"
}
description = {
summary = "UUID generation",
@@ -16,10 +16,8 @@ dependencies = {
"lua >= 5.1"
}
build = {
- type = "builtin",
- modules = {
- lua_uuid = {
- sources = {"lua_uuid.c"},
- }
+ type = "make",
+ install_variables = {
+ INST_LIBDIR = "$(LIBDIR)"
}
} \ No newline at end of file