1 --- Makefile.orig 2011-12-26 20:40:14.049290106 +0100
2 +++ Makefile 2011-12-26 21:21:01.955889081 +0100
4 -# Makefile for installing Lua
6 # See doc/readme.html for installation and customization instructions.
8 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
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
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
26 PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
30 +TO_BIN= lua5.2 luac5.2
31 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
36 +TO_MAN= lua5.2.1 luac5.2.1
38 # Lua version and release.
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)
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)