diff options
author | chai <chaifix@163.com> | 2021-10-24 20:23:00 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-24 20:23:00 +0800 |
commit | 396b51b0b9e16ba7a8f34e426e7d1332f84419bc (patch) | |
tree | 2071bf38dc1d818c8fa8309794aba3a27013209c /Resources/DefaultContent/Libraries/lua-csv/makefile | |
parent | 3239ba18797b1aa098056aa0c2a70e250a27a06c (diff) |
+lua-csv
Diffstat (limited to 'Resources/DefaultContent/Libraries/lua-csv/makefile')
-rw-r--r-- | Resources/DefaultContent/Libraries/lua-csv/makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Resources/DefaultContent/Libraries/lua-csv/makefile b/Resources/DefaultContent/Libraries/lua-csv/makefile new file mode 100644 index 0000000..dfa7596 --- /dev/null +++ b/Resources/DefaultContent/Libraries/lua-csv/makefile @@ -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 |