Skip to content

Commit

Permalink
Use builtin build method. Fix #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakjois committed Apr 22, 2016
1 parent 4100431 commit 310b0ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ luacov.report.out
luacov.stats.out
.luacheckcache
api
*.src.rock
*.rock
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ else
LIBFLAGS = -shared
endif

# For compatibility with Luarocks
INST_PREFIX = /usr/local
INST_LIBDIR = $(INST_PREFIX)/lib/lua/5.2
INST_LUADIR = $(INST_PREFIX)/share/lua/5.2

DOCS_DIR := api
BUILD_DIR := build
C_SRC_ROOT := src/luaucdn
Expand Down Expand Up @@ -44,9 +39,4 @@ lint:
doc:
ldoc -d ${DOCS_DIR} .

# For use with Luarocks
install: luaucdn.so src/ucdn.lua
cp luaucdn.so $(INST_LIBDIR)
cp src/ucdn.lua $(INST_LUADIR)

.PHONY: all clean test dirs install lint spec doc
.PHONY: all clean test dirs lint spec doc
12 changes: 6 additions & 6 deletions luaucdn-0.0.1-0.rockspec → luaucdn-0.0.2-0.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "luaucdn"
version = "0.0.1-0"
version = "0.0.2-0"
source = {
url = "git://github.com/deepakjois/luaucdn",
tag = "v0.0.1"
tag = "v0.0.2"
}
description = {
summary = "Lua bindings for ucdn",
Expand All @@ -14,9 +14,9 @@ dependencies = {
"lua ~> 5.2"
}
build = {
type = "make",
install_variables = {
INST_LIBDIR="$(LIBDIR)",
INST_LUADIR="$(LUADIR)",
type = "builtin",
modules = {
ucdn = "src/ucdn.lua",
luaucdn = {"src/luaucdn/ucdn.c", "src/luaucdn/luaucdn.c"}
}
}

0 comments on commit 310b0ed

Please sign in to comment.