aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-05-11 15:33:47 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-05-11 15:33:47 +0800
commit05535a19f81d181b7e15d241892e794a00905bb9 (patch)
treef73f46fd534070f6d94d8eaa0fd0d56f3d4db895 /makefile
parent399bdb7f412bd9cc565090f30e3872d8b72d66d8 (diff)
downloadluasocket-05535a19f81d181b7e15d241892e794a00905bb9.tar.gz
luasocket-05535a19f81d181b7e15d241892e794a00905bb9.tar.bz2
luasocket-05535a19f81d181b7e15d241892e794a00905bb9.zip
Improve makefile to allow overriden variables
Before this change, it was difficult to set default directories for different platforms that would still work with different Lua versions.
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 934485b..f9fa6fe 100644
--- a/makefile
+++ b/makefile
@@ -23,10 +23,10 @@ test:
23 lua test/hello.lua 23 lua test/hello.lua
24 24
25install-both: 25install-both:
26 touch src/*.c 26 $(MAKE) clean
27 @cd src; $(MAKE) $(PLAT) LUAV=5.1 27 @cd src; $(MAKE) $(PLAT) LUAV=5.1
28 @cd src; $(MAKE) install-unix LUAV=5.1 28 @cd src; $(MAKE) install-unix LUAV=5.1
29 touch src/*.c 29 $(MAKE) clean
30 @cd src; $(MAKE) $(PLAT) LUAV=5.2 30 @cd src; $(MAKE) $(PLAT) LUAV=5.2
31 @cd src; $(MAKE) install-unix LUAV=5.2 31 @cd src; $(MAKE) install-unix LUAV=5.2
32 32