Use LUASRC variable when generating nhlua.h.

This commit is contained in:
Bart House
2020-12-15 00:46:55 -08:00
parent 679ffd6719
commit 9db1aff070

View 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