From 8b633927930095d2a8f6ffd48dc2f88a21b3e0bf Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 05:10:58 +0000 Subject: build: invoke the PowerShell installer on Windows Co-Authored-By: Claude Fable 5.1 --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 939d6f6..35a856f 100644 --- a/README.md +++ b/README.md @@ -203,8 +203,20 @@ For a custom prefix, add its `bin` directory to PATH; `man` normally discovers t adjacent `share/man` directory from PATH. If your man configuration overrides this, use `man -M "$HOME/.local/share/man" cpsc` for the local prefix. -On Windows, `install.ps1` installs for the current user without administrator -rights. Its source directory must contain `cpsc.exe` and `doc/cpsc.html`: +On Windows, install from an existing MinGW build with: + +```powershell +cmake --build build --target install +``` + +This is equivalent to `mingw32-make -C build install`: it generates the HTML +manual with Pandoc and calls `install.ps1`. The Windows default +`CMAKE_INSTALL_PREFIX` is `%LOCALAPPDATA%\Programs\cpsc`; an explicitly configured +prefix is preserved. To change it, run +`cmake -S . -B build -DCMAKE_INSTALL_PREFIX="D:/My Programs/cpsc"` before installing. + +You can also call `install.ps1` directly. It installs for the current user without +administrator rights. Its source directory must contain `cpsc.exe` and `doc/cpsc.html`: ```powershell powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -SourceDir .\build -- cgit v1.3.1-4-g156e