From: nhmall Date: Fri, 4 Dec 2020 13:21:53 +0000 (-0500) Subject: add a couple of optional fetching targets to sys/winnt/Makefile.msc X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b3632249f8119427d7e4645f641be2d7baafe3a;p=nethack add a couple of optional fetching targets to sys/winnt/Makefile.msc --- diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc index 6bbcee59e..259b1010a 100644 --- a/sys/winnt/Makefile.msc +++ b/sys/winnt/Makefile.msc @@ -1192,6 +1192,32 @@ $(O)envchk.tag: $(O)obj.tag #========================================== #=========== SECONDARY TARGETS ============ #========================================== +fetch-lua: fetch-actual-Lua + +fetch-Lua: fetch-actual-Lua + +fetch-actual-Lua: + @if not exist ..\lib\*.* mkdir ..\lib + cd ..\lib + curl -R -O http://www.lua.org/ftp/lua-$(LUAVER).tar.gz + tar zxf lua-$(LUAVER).tar.gz + if exist lua-$(LUAVER).tar.gz del lua-$(LUAVER).tar.gz + if exist lua-$(LUAVER).tar del lua-$(LUAVER).tar + cd ..\src + @echo Lua has been fetched into ..\lib\lua-$(LUAVER) + +fetch-pdcurses: + @if not exist ..\lib\*.* mkdir ..\lib + cd ..\lib + curl -L -R https://codeload.github.com/wmcbrine/PDCurses/zip/master -o pdcurses.zip + powershell -command "Expand-Archive -Path .\pdcurses.zip -DestinationPath ./pdcurses-temp" + if exist .\pdcurses\* rd .\pdcurses /s /Q + move .\pdcurses-temp\PDCurses-master . + ren PDCurses-master pdcurses + if exist .\pdcurses-temp\* rd .\pdcurses-temp /s /Q + if exist .\pdcurses.zip del .\pdcurses.zip + cd ..\src + @echo pdcurses has been fetched into ..\lib\pdcurses #========================================== # DLB utility and nhdatNNN file creation