summaryrefslogtreecommitdiff
path: root/net/luasocket/files/patch-Makefile
blob: 646a462ef1ef96726daf0fa923e63badffc52fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- Makefile.orig	2013-06-14 11:27:32 UTC
+++ Makefile
@@ -23,21 +23,15 @@ print:
 test:
 	lua test/hello.lua
 
-install-both:
-	$(MAKE) clean 
-	@cd src; $(MAKE) $(PLAT) LUAV=5.1
-	@cd src; $(MAKE) install LUAV=5.1
+install:
 	$(MAKE) clean 
-	@cd src; $(MAKE) $(PLAT) LUAV=5.2
-	@cd src; $(MAKE) install LUAV=5.2
+	@cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER)
+	@cd src; $(MAKE) install LUAV=$(LUA_VER)
 
-install-both-unix:
-	$(MAKE) clean 
-	@cd src; $(MAKE) $(PLAT) LUAV=5.1
-	@cd src; $(MAKE) install-unix LUAV=5.1
+install-unix:
 	$(MAKE) clean 
-	@cd src; $(MAKE) $(PLAT) LUAV=5.2
-	@cd src; $(MAKE) install-unix LUAV=5.2
+	@cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER)
+	@cd src; $(MAKE) install-unix LUAV=$(LUA_VER)
 
 .PHONY: test