Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 679 Bytes
PACKAGE=luacov
VERSION=0.9.1
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
LUA=lua
LUAVER=5.1
LUADIR=$(PREFIX)/share/lua/$(LUAVER)
install:
mkdir -p $(BINDIR)
cp src/bin/luacov $(BINDIR)
chmod +x $(BINDIR)/luacov
mkdir -p $(LUADIR)
cp src/luacov.lua $(LUADIR)
mkdir -p $(LUADIR)/luacov
cp src/luacov/*.lua $(LUADIR)/luacov
dist:
rm -rf $(PACKAGE)-$(VERSION)
rm -f $(PACKAGE)-$(VERSION).tar.gz
mkdir -p $(PACKAGE)-$(VERSION)
cp -a bin src doc Makefile README.md rockspecs $(PACKAGE)-$(VERSION)
tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
test:
$(LUA) tests/linescanner.lua
$(LUA) tests/filefilter.lua
$(LUA) tests/cli.lua