summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-11 12:12:12 +0000
committerrillig <rillig@pkgsrc.org>2007-01-11 12:12:12 +0000
commit86e14e4200cb1f5eb0854f5b914bc4806cd7009d (patch)
tree22e49a56c16d73f6e724833a63588855cda3bd3f /mk
parent9ea67301ad39002d2f6574993ecd8f51baf2a8b8 (diff)
downloadpkgsrc-86e14e4200cb1f5eb0854f5b914bc4806cd7009d.tar.gz
When a SUBST change leaves a file as-is, print an informational message.
For all messages, the current SUBST_CLASS is printed, too.
Diffstat (limited to 'mk')
-rw-r--r--mk/subst.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 9bea48e18fb..d122ffce160 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.39 2007/01/03 23:35:13 rillig Exp $
+# $NetBSD: subst.mk,v 1.40 2007/01/11 12:12:12 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -85,15 +85,16 @@ ${_SUBST_COOKIE.${_class_}}:
${CHMOD} +x "$$file"; \
fi; \
if ${CMP} -s "$$tmpfile" "$$file"; then \
+ ${INFO_MSG} "[subst.mk:${_class_}] Nothing changed in $$file."; \
${MV} -f "$$tmpfile" "$$file"; \
else \
${SUBST_POSTCMD.${_class_}}; \
${ECHO} "$$file" >> ${.TARGET}; \
fi; \
elif ${TEST} -f "$$file"; then \
- ${WARNING_MSG} "[subst.mk] Ignoring non-text file \"$$file\"." 1>&2; \
+ ${WARNING_MSG} "[subst.mk:${_class_}] Ignoring non-text file \"$$file\"."; \
else \
- ${WARNING_MSG} "[subst.mk] Ignoring non-existent file \"$$file\"." 1>&2; \
+ ${WARNING_MSG} "[subst.mk:${_class_}] Ignoring non-existent file \"$$file\"."; \
fi; \
done
${_PKG_SILENT}${_PKG_DEBUG} set -e; \