updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / lua5.2 / 01_Makefile.patch
blobd06b927de6f4aedc2121b46273ae2dba0ed55af2
1 --- Makefile.orig 2011-12-26 20:40:14.049290106 +0100
2 +++ Makefile 2011-12-26 21:21:01.955889081 +0100
3 @@ -1,4 +1,4 @@
4 -# Makefile for installing Lua
6 # See doc/readme.html for installation and customization instructions.
8 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
9 @@ -10,11 +10,12 @@
10 # so take care if INSTALL_TOP is not an absolute path. See the local target.
11 # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
12 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
13 -INSTALL_TOP= /usr/local
14 +#INSTALL_TOP= /usr
15 INSTALL_BIN= $(INSTALL_TOP)/bin
16 -INSTALL_INC= $(INSTALL_TOP)/include
17 +INSTALL_INC= $(INSTALL_TOP)/include/lua/$V
18 INSTALL_LIB= $(INSTALL_TOP)/lib
19 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
20 +INSTALL_SHD= $(INSTALL_TOP)/lib
21 +INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
22 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
23 INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
25 @@ -39,10 +40,11 @@
26 PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
28 # What to install.
29 -TO_BIN= lua luac
30 +TO_BIN= lua5.2 luac5.2
31 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
32 -TO_LIB= liblua.a
33 -TO_MAN= lua.1 luac.1
34 +TO_LIB= liblua5.2.a
35 +TO_SHD= liblua5.2.so
36 +TO_MAN= lua5.2.1 luac5.2.1
38 # Lua version and release.
39 V= 5.2
40 @@ -62,12 +64,14 @@
41 cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
42 cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
43 cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
44 + cd src && $(INSTALL_DATA) $(TO_SHD) $(INSTALL_SHD)
45 cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
47 uninstall:
48 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
49 cd src && cd $(INSTALL_INC) && $(RM) $(TO_INC)
50 cd src && cd $(INSTALL_LIB) && $(RM) $(TO_LIB)
51 + cd src && cd $(INSTALL_SHD) && $(RM) $(TO_SHD)
52 cd doc && cd $(INSTALL_MAN) && $(RM) $(TO_MAN)
54 local: