Omit build commands from auto-generated install.sh (#2138)

Fixes #2045
This commit is contained in:
Eldred Habert
2026-09-21 16:04:08 -04:00
committed by GitHub
parent 63a06f02c3
commit 629074bc28
+4
View File
@@ -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 $@