@echo off rem =========================================================================== rem arborist - Windows shim so `make ` works without GNU make. rem rem Forwards every argument to tasks.py (the cross-platform quickstart rem runner). The Makefile stays canonical on Unix; this only exists so the rem README quickstart runs on native Windows (cmd / PowerShell). rem rem cmd : make query Q="What is anarcho-capitalism?" rem PowerShell : .\make.bat query Q="What is anarcho-capitalism?" rem rem Windows ships the `py` launcher rather than `python3`, so prefer it. rem Ticket: docs/tickets/ticket-000055-windows-quickstart-no-make.md rem =========================================================================== setlocal set "_PY=" where py >NUL 2>NUL && set "_PY=py -3" if not defined _PY ( where python >NUL 2>NUL && set "_PY=python" ) if not defined _PY ( where python3 >NUL 2>NUL && set "_PY=python3" ) if not defined _PY ( echo [make.bat] Python 3.10+ was not found on PATH. 1>&2 echo Install it from https://www.python.org/downloads/ 1>&2 echo and tick "Add python.exe to PATH" during setup. 1>&2 exit /b 1 ) %_PY% "%~dp0tasks.py" %* exit /b %ERRORLEVEL%