]> granicus.if.org Git - nethack/commitdiff
Fail fetch-lua in Unix Makefile more gracefully
authorPasi Kallinen <paxed@alt.org>
Sat, 7 Mar 2020 20:38:23 +0000 (22:38 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 7 Mar 2020 20:38:33 +0000 (22:38 +0200)
If missing curl or failing to download the lua tarball,
don't try to untar the nonexistent file.

sys/unix/Makefile.top

index 364d1b3d965103a332cbd75eaa5c697de4d047ea..87e6def794205129c308b19479a9a18e5ae98993 100644 (file)
@@ -257,9 +257,9 @@ fetch-lua: fetch-Lua
        @true
 
 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 )
+       ( 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)