Repository navigation
Description
Epic: Lore Package Development (#74) · Plan of record: lore-package-development.md
The package
packages/gnu-make (aliases: make, gmake, gnumake) installs GNU Make — current 4.4.x,
native to the machine's architecture — on Darwin, Linux, and Windows. No such package exists
in the registry yet; this is the first one authored from scratch on the current contract,
following the full authoring pipeline (parse → generate → scaffold → scripts → validate →
test → README → publish), which makes it the pipeline's proving run as much as a deliverable.
Why this package exists (the disparity ruling)
Microsoft's NMAKE is not a provider for this package. NMAKE and GNU Make share only the
target: prerequisites skeleton; the languages are disjoint — !IF/!IFDEF/!INCLUDE
versus ifeq/ifdef/include, suffix inference rules versus % pattern rules, no
$(wildcard)/$(shell)/$(patsubst)/$(foreach), no .PHONY/define/export/VPATH,
no -j parallelism, and recipes run under cmd.exe versus sh. CMake maintains separate
"NMake Makefiles", "MinGW Makefiles", and "Unix Makefiles" generators precisely because the
outputs are mutually unintelligible. A project handing you a GNU makefile needs actual GNU
Make; Visual Studio's presence provides none of it.
Platform install story
Windows — MSYS2 is the ruling
- MSYS2 is the source of truth: current GNU Make, actively maintained, and the only
channel with native ARM64 binaries (the CLANGARM64 environment). Bootstrap via winget
(MSYS2.MSYS2), thenpacman -S make. - MSYS2 ships two different makes and the choice matters:
make(msys/make): recipes under MSYS2's sh, POSIX path handling — the compatible
choice for Unix-style makefiles, autotools, anything whose recipes assume a shell.mingw-w64-*-make(installs asmingw32-make.exe): native-Windows make, recipes under
cmd.exe when no sh is on PATH — what CMake's "MinGW Makefiles" generator expects, and it
chokes on sh-isms in recipes. Offered as featuremingw-make.
- PATH gotcha: neither make is visible from PowerShell/cmd until the environment's bin
directory (C:\msys64\clangarm64\bin,usr\bin) is added to the Windows PATH or the work
happens inside the MSYS2 shell. The installer does not do this. The provision phase owns it. - Rejected alternatives, documented in the README so nobody relitigates them:
- GnuWin32 (
winget install GnuWin32.Make): GNU Make 3.81 from 2006, 32-bit x86 —
emulated on ARM, predates!=,$(file ...), modern.ONESHELL. Never. - ezwinports (choco/scoop
make): current-ish but x86-64 only — emulated on ARM64.
Acceptable fallback where installing MSYS2 is unwanted; second-best on ARM. - WSL: real GNU Make, wrong world — that builds in Linux, not for Windows.
- GnuWin32 (
Darwin
- Apple's
/usr/bin/make(Command Line Tools) is GNU Make 3.81, frozen at the last
GPLv2 release — same feature ceiling as GnuWin32. - Modern make comes from MacPorts (
port install gmake) or Homebrew (brew install make) —
and installs asgmake, notmake, unless the user opts into PATH shadowing. The
verify phase must therefore probegmakebeforemake.
Linux
- The distro package is current everywhere:
apt install make,dnf install make,
pacman -S make. No tribal knowledge beyond build-essential adjacency (Debian'smake
rides inbuild-essential; installingmakealone is leaner and sufficient).
Manifest sketch
signatures:— brew: [make], port: [gmake], apt: [make], dnf: [make], pacman: [make],
winget: [MSYS2.MSYS2], choco: [make]features:—mingw-make(Windows: also install the mingw-w64 make), default falseverification:— commandmake --version(Darwin:gmake --version),
pattern"GNU Make \\d+\\.\\d+"- Platform directories:
Common/,Darwin/,Linux/,Windows/underDeploy/
(Upgrade/Decommission to follow docker's shape)
Evidence of completion
- Package scaffolded with
lore manifest create gnu-make, scripts on the
(package, phase)+plan.*contract, platform logic in directories only lore manifest validate gnu-makepasses;lore manifest test gnu-makepasses per
platform target, including--target-os windows- README carries the disparity ruling, the MSYS2 ruling, the two-makes distinction, the
PATH gotcha, and the rejected alternatives — each mirrored by aTRIBAL KNOWLEDGE:
header in the script that encodes it - Registry PR merged with green macOS/Linux/Windows runs
Activity