diff --git a/.gitignore b/.gitignore index 08346d41c..9dc6b49f5 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ Release/ binary/ build/ ipch/ +lib/ Nethack.sln Nethack.sdf Nethack.opensdf diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top index 13ceb19bf..9d3cceeb8 100644 --- a/sys/unix/Makefile.top +++ b/sys/unix/Makefile.top @@ -74,6 +74,9 @@ VARDAT = $(VARDATD) $(VARDATND) #CHOWN = chown #CHGRP = chgrp +# Lua version +LUA_VERSION = 5.3.5 + # # end of configuration # @@ -232,7 +235,15 @@ dofiles-nodlb: -( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) $(DAT) ; \ $(CHGRP) $(GAMEGRP) $(DAT) ; \ chmod $(FILEPERM) $(DAT) ) +# +# This is not part of the dependency build hierarchy. +# It requires an explicit "make fetch-Lua". +fetch-lua: fetch-Lua +fetch-Lua: + ( mkdir -p lib ; cd lib ; \ + curl -R -O http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz ; \ + tar zxf lua-$(LUA_VERSION).tar.gz ; rm -f lua-$(LUA_VERSION).tar.gz ) update: $(GAME) recover $(VARDAT) spec_levs # (don't yank the old version out from under people who're playing it) -mv $(INSTDIR)/$(GAME) $(INSTDIR)/$(GAME).old