From: Bart House Date: Tue, 15 Dec 2020 08:46:55 +0000 (-0800) Subject: Use LUASRC variable when generating nhlua.h. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9db1aff070b338a515143edde9b8eb3f3e12a886;p=nethack Use LUASRC variable when generating nhlua.h. --- diff --git a/sys/winnt/Makefile.gcc b/sys/winnt/Makefile.gcc index e44851950..0ff95de64 100644 --- a/sys/winnt/Makefile.gcc +++ b/sys/winnt/Makefile.gcc @@ -833,10 +833,10 @@ $(O)utility.tag: $(INCL)/date.h $(INCL)/onames.h $(INCL)/pm.h \ $(INCL)/nhlua.h: echo /* nhlua.h - generated by top Makefile */ > $@ - @echo #include "../lib/lua-$(LUA_VERSION)/src/lua.h" >> $@ + @echo #include "$(LUASRC)/lua.h" >> $@ @echo LUA_API int (lua_error) (lua_State *L) NORETURN; >>$@ - @echo #include "../lib/lua-$(LUA_VERSION)/src/lualib.h" >> $@ - @echo #include "../lib/lua-$(LUA_VERSION)/src/lauxlib.h" >> $@ + @echo #include "$(LUASRC)/lualib.h" >> $@ + @echo #include "$(LUASRC)/lauxlib.h" >> $@ @echo /*nhlua.h*/ >> $@ tileutil: $(U)gif2txt.exe $(U)gif2tx32.exe $(U)txt2ppm.exe