aboutsummaryrefslogtreecommitdiff
path: root/build_luajit.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-14 08:53:50 +0800
committerDeterminant <[email protected]>2015-05-14 08:53:50 +0800
commit32e1ebaa367bc9df4e19ee0634dd054ae298ae06 (patch)
tree45e20ac6fa9dcf42ca6f66702b7f2eeef4d6fd8a /build_luajit.sh
parenta774bfc860471ac880a9b33bbe68761ec9187caf (diff)
integrate luajit build process into makefile
Diffstat (limited to 'build_luajit.sh')
-rwxr-xr-xbuild_luajit.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_luajit.sh b/build_luajit.sh
new file mode 100755
index 0000000..bb23b5f
--- /dev/null
+++ b/build_luajit.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+PREFIX="${PWD}/build"
+LUAJIT_SRC='luajit-2.0/'
+LUAJIT_PREFIX="${PREFIX}/luajit-2.0"
+[[ -d $LUAJIT_PREFIX ]] || (cd "$LUAJIT_SRC"; make && make PREFIX="$LUAJIT_PREFIX" install)