From 3f2d46823a69fc9d33a0bd3befd7507455c1e042 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Sat, 10 Aug 2024 16:25:35 -0400 Subject: [PATCH] add nhlua target (for internal use) --- sys/unix/Makefile.top | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top index adaf5cbe8..c7bb4b524 100644 --- a/sys/unix/Makefile.top +++ b/sys/unix/Makefile.top @@ -161,6 +161,16 @@ luabin: ( cd $(LUATOP) \ && make $(LUAMAKEFILES) all && cd $(LUA2NHTOP) ) +# This is only needed for some internal tools. +nhlua: + base=`ls -td lib/lua-*|head -1` ; \ + [ -z $$base ] && $(MAKE) fetch-lua ; \ + base=`ls -td lib/lua-*|head -1` ; \ + cp -R $$base/ lib/nhlsrc ; \ + rm -f util/nhlua ; \ + ( cd lib/nhlsrc && $(MAKE) clean posix ) ; \ + cp lib/nhlsrc/src/lua util/nhlua + # hints file could set LUATESTTARGET to this if GITSUBMODULES is defined submodules/lua/lua.h: git submodule init submodules/lua