summaryrefslogtreecommitdiffstats
path: root/config/pkg.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/pkg.mk
parentadf0ab47c2d18d807bb21345b92be9cc5525d539 (diff)
downloadbfs-94f26cec62be7f0d766f80f7376ea5e0040948ae.tar.xz
build: Dont include ${BUILDDIR} in short messages
Diffstat (limited to 'config/pkg.mk')
-rw-r--r--config/pkg.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/pkg.mk b/config/pkg.mk
index 2086555..482ca17 100644
--- a/config/pkg.mk
+++ b/config/pkg.mk
@@ -8,13 +8,16 @@ include ${GEN}/vars.mk
include ${GEN}/flags.mk
include config/exports.mk
+# Like ${TGT} but for ${TARGET}, not $@
+SHORT = ${TARGET:${BUILDDIR}/%=%}
+
default::
@printf '# %s\n' "${TARGET}" >${TARGET}
config/pkg.sh ${TARGET:${GEN}/%.mk=%} >>${TARGET} 2>${TARGET}.log
@if [ "${IS_V}" ]; then \
cat ${TARGET}; \
elif grep -q PKGS ${TARGET}; then \
- printf '[ GEN] %-18s [y]\n' ${TARGET}; \
+ printf '[ GEN] %-18s [y]\n' ${SHORT}; \
else \
- printf '[ GEN] %-18s [n]\n' ${TARGET}; \
+ printf '[ GEN] %-18s [n]\n' ${SHORT}; \
fi