summaryrefslogtreecommitdiffstats
path: root/build/prelude.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-05-26 23:30:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-05-26 23:30:28 -0400
commit397181df7c7372bdf4897296dabe386fa4212ea8 (patch)
treed07bfd677de2511c478f2a1e41c68914236914ab /build/prelude.mk
parent7e92bc9d00db4bb35b491881f54484b24d3ed97d (diff)
downloadbfs-397181df7c7372bdf4897296dabe386fa4212ea8.tar.xz
build: Use $^ instead of ${.ALLSRC}
Diffstat (limited to 'build/prelude.mk')
-rw-r--r--build/prelude.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/build/prelude.mk b/build/prelude.mk
index c25dea4..6250d73 100644
--- a/build/prelude.mk
+++ b/build/prelude.mk
@@ -9,11 +9,9 @@
# We don't use any suffix rules
.SUFFIXES:
-# GNU make has $^ for the full list of targets, while BSD make has $> and the
-# long-form ${.ALLSRC}. We could write $^ $> to get them both, but that would
-# break if one of them implemented support for the other. So instead, bring
-# BSD's ${.ALLSRC} to GNU.
-.ALLSRC ?= $^
+# GNU make has $^ for the full list of targets, while BSD make has $> (and the
+# long-form ${.ALLSRC}). We use the GNU version, bringing it to BSD like this:
+^ ?= $>
# Installation paths
DESTDIR ?=