]> granicus.if.org Git - nethack/commitdiff
Use LUASRC variable when generating nhlua.h.
authorBart House <bart@barthouse.com>
Tue, 15 Dec 2020 08:46:55 +0000 (00:46 -0800)
committerBart House <bart@barthouse.com>
Tue, 15 Dec 2020 08:46:55 +0000 (00:46 -0800)
sys/winnt/Makefile.gcc

index e448519506373b5ab469642b79a21f5d99b03dae..0ff95de648edb93f26c2564b08f34fbcf8257b17 100644 (file)
@@ -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