mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
added a makefile
This commit is contained in:
parent
50e14b7484
commit
1a8aa46661
14
makefile
Normal file
14
makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
LUA= $(shell echo `which lua`)
|
||||||
|
LUA_BINDIR= $(shell echo `dirname $(LUA)`)
|
||||||
|
LUA_PREFIX= $(shell echo `dirname $(LUA_BINDIR)`)
|
||||||
|
LUA_VERSION = $(shell echo `lua -v 2>&1 | cut -d " " -f 2 | cut -b 1-3`)
|
||||||
|
LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/$(LUA_VERSION)
|
||||||
|
|
||||||
|
default:
|
||||||
|
@echo "Nothing to build. Try 'make install' or 'make test'."
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp lua/csv.lua $(LUA_SHAREDIR)
|
||||||
|
|
||||||
|
test:
|
||||||
|
cd lua && $(LUA) test.lua
|
Loading…
Reference in New Issue
Block a user