summaryrefslogtreecommitdiff
path: root/Data/Libraries/lua-csv/makefile
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-26 19:33:40 +0800
committerchai <chaifix@163.com>2021-10-26 19:33:40 +0800
commit051abd04e4527095ef15412939450fbe504daebe (patch)
tree30a966d104ee866bc135cce58b4a5fa561c8c4e7 /Data/Libraries/lua-csv/makefile
parentb1228baf73f6dc3336e24afbf36087e15730732a (diff)
+texture & imagedata
Diffstat (limited to 'Data/Libraries/lua-csv/makefile')
-rw-r--r--Data/Libraries/lua-csv/makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Data/Libraries/lua-csv/makefile b/Data/Libraries/lua-csv/makefile
new file mode 100644
index 0000000..dfa7596
--- /dev/null
+++ b/Data/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