From 629074bc28bd820857badb5d8b1d54929351cd57 Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Mon, 21 Sep 2026 22:04:08 +0200 Subject: [PATCH] Omit build commands from auto-generated `install.sh` (#2138) Fixes #2045 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1f6b2f14..97c6522b 100644 --- a/Makefile +++ b/Makefile @@ -184,8 +184,12 @@ src/gfx/rgba.o: src/gfx/rgba.cpp .cpp.o: $Q${CXX} ${WARNFLAGS} ${REALCXXFLAGS} -c -o $@ $< +# Relying on the Makefile itself to introspect the installation commands. +# First pretending to build the executables to exclude their build commands, +# and then emitting the install commands without actually executing them. install.sh: $Qecho '#!/usr/bin/env bash' > $@ + $Q${MAKE} -t all $Q${MAKE} -s -n install MANSRC= >> $@ $Qchmod +x $@