summaryrefslogtreecommitdiffstats
path: root/config/prelude.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-17 12:09:11 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-17 12:09:11 -0400
commit94f26cec62be7f0d766f80f7376ea5e0040948ae (patch)
tree9e94e128f8a0aa0c0bd90f175b9e0a4096a43bd2 /config/prelude.mk
parentadf0ab47c2d18d807bb21345b92be9cc5525d539 (diff)
downloadbfs-94f26cec62be7f0d766f80f7376ea5e0040948ae.tar.xz
build: Dont include ${BUILDDIR} in short messages
Diffstat (limited to 'config/prelude.mk')
-rw-r--r--config/prelude.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/prelude.mk b/config/prelude.mk
index 1d5fb83..2bcb208 100644
--- a/config/prelude.mk
+++ b/config/prelude.mk
@@ -95,6 +95,9 @@ IS_V := ${TRUTHY,${V}}
Q, := @
Q := ${Q,${IS_V}}
+# The current target, with ${BUILDDIR} stripped for shorter messages
+TGT = ${@:${BUILDDIR}/%=%}
+
# Show full commands with `make V=1`, otherwise short summaries
MSG = @msg() { \
MSG="$$1"; \