Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-08 14:27:12 +0400
committerMark Pulford <mark@kyne.com.au>2011-12-08 14:27:12 +0400
commitbd994cd7976ac93c530792e3c0d6f45a33c757b4 (patch)
tree6e5a4dd5d1b01e71d66f3cfe3d8e8c39d1410480 /runtests.sh
parentbea23facc1644cffa53ecc84fa236806e9c94dfd (diff)
Fix Makefile for use with non-GNU make
- Remove GNU make "override" statements. - Add OBJS variable since there is no portable way to specify all targets for linking. Also: - Put build defaults at the top to avoid potential confusion. - Don't assume a Linux platform. Default to USE_POSIX_SETLOCALE. - Change "install -d" to mkdir/install since the former isn't available on some platforms (Solaris).
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtests.sh b/runtests.sh
index 1e0a5cd..ed78cc5 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -1,8 +1,5 @@
#!/bin/sh
-MAKE=make
-#MAKE=gmake
-
EGREP="grep -E"
#EGREP="egrep"
@@ -28,18 +25,18 @@ echo "===== Building UTF-8 test data ====="
( cd tests && ./genutf8.pl; )
echo "===== Cleaning old build data ====="
-$MAKE clean
+make clean
rm -f tests/cjson.so
echo "===== Testing LuaRocks build ====="
luarocks make --local
do_tests
luarocks remove --local lua-cjson
-$MAKE clean
+make clean
echo "===== Testing Makefile build ====="
-$MAKE
+make
cp cjson.so tests
do_tests
-$MAKE clean
+make clean
rm -f tests/cjson.so