Commit 07efbad6 authored by François Perrad's avatar François Perrad

target bed

parent 8212e34e
/bed
/public
/MANIFEST
/*.tar
......
ifeq ($(wildcard bed),bed)
LUA := $(CURDIR)/bed/bin/lua
else
LUA := lua
endif
VERSION := $(shell cd src && $(LUA) -e "m = require [[Spore]]; print(m._VERSION)")
TARBALL := lua-spore-$(VERSION).tar.gz
REV := 1
......@@ -11,6 +15,8 @@ BINDIR := $(DPREFIX)/bin
LIBDIR := $(DPREFIX)/share/lua/$(LUAVER)
INSTALL := install
BED_OPTS:= --lua latest
all:
@echo "Nothing to build here, you can just make install"
......@@ -109,6 +115,20 @@ rockspec: $(TARBALL)
rock:
luarocks pack rockspec/lua-spore-$(VERSION)-$(REV).rockspec
bed:
hererocks bed $(BED_OPTS) --no-readline --luarocks latest --verbose
bed/bin/luarocks install lua-testmore
bed/bin/luarocks install lua-testlongstring
bed/bin/luarocks install luasocket
bed/bin/luarocks install luasec
bed/bin/luarocks install luaexpat
bed/bin/luarocks install luajson
bed/bin/luarocks install lualogging
bed/bin/luarocks install lyaml 6.1.1
bed/bin/luarocks install luacov
hererocks bed --show
bed/bin/luarocks list
check: test
export LUA_PATH=;;src/?.lua
......@@ -146,5 +166,8 @@ pages:
clean:
rm -f MANIFEST *.bak src/luacov.*.out *.rockspec README.html
realclean: clean
rm -rf bed
.PHONY: test rockspec CHANGES dist.info
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment