1 --- lua-5.4.6/Makefile 2023-05-02 22:06:08.000000000 +0200
2 +++ lua-5.4.6/Makefile.new 2023-10-02 22:46:58.368043987 +0200
4 # so take care if INSTALL_TOP is not an absolute path. See the local target.
5 # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
6 # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
7 -INSTALL_TOP= /usr/local
8 +INSTALL_TOP= $(ROOT)/usr
9 INSTALL_BIN= $(INSTALL_TOP)/bin
10 -INSTALL_INC= $(INSTALL_TOP)/include
11 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
12 INSTALL_LIB= $(INSTALL_TOP)/lib
13 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
14 +INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
15 INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
16 INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
17 +INSTALL_DOC= $(INSTALL_TOP)/share/doc/lua$V
19 # How to install. If your install program does not support "-p", then
20 # you may have to run ranlib on the installed liblua.a.
22 -INSTALL_EXEC= $(INSTALL) -m 0755
23 -INSTALL_DATA= $(INSTALL) -m 0644
25 +INSTALL_EXEC= $(INSTALL) -m 0555
26 +INSTALL_DATA= $(INSTALL) -m 0444
28 # If you don't have "install" you can use "cp" instead.
31 PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris
36 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
40 +TO_MAN= lua$V.1 luac$V.1
41 +TO_DOC= contents.html osi-certified-72x60.png logo.gif lua.css manual.css manual.html readme.html
43 # Lua version and release.
49 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
50 + cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_DOC) $(INSTALL_MAN) $(INSTALL_TEST)
51 cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
52 cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
53 - cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
54 + cd src && $(INSTALL_EXEC) $(TO_LIB) $(INSTALL_LIB)
55 + cd doc && cp lua.1 lua$V.1 && cp luac.1 luac$V.1
56 cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
57 + cd doc && $(INSTALL_DATA) $(TO_DOC) $(INSTALL_DOC)
60 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)