Reduce the implied reliance of a specific version of lua. Instead of copying liblua.a to src/, copy it to lib/. Instead of telling the compiler to look for headers in lib/lua-5.3.5/src/ as well as in include/, copy the relevant ones to lib/ and tell the compiler to look for them there. 'make spotless' in src/ will remove both the object library and the header files from lib/ but there really should be a new Makefile.lib to take care of that directory. Update Makefile.src to be able to build lua in case someone starts with 'make all' there instead of in the top Makefile. It doesn't duplicate the option to fetch the lua source package though. NHinternal/../genFiles.c has been updated to mention lib/liblua.a and lib/lua*.h as 'generated at compile time' in Files and to skip lib/lua-* entirely if it comes across that (so not operating on a completely clean tree). But it won't be accurate unless/until other ports stage their lua files there instead of in src/ and lib/lua-$(VERSION)/src/. I haven't tried 'make depend' to see what it makes of the numerous changes....
45 KiB
45 KiB