diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-17 23:17:02 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-17 23:17:02 +0000 |
commit | 7dccf8e1bacfc1cf7bde4563a3925418ca406a6c (patch) | |
tree | 0675165f6d0f2dc039753be4bea527d5412fa5f7 /mk/subst.mk | |
parent | b4723c94c61e86e413ae3a9df1e228f6c0ebbce5 (diff) | |
download | pkgsrc-7dccf8e1bacfc1cf7bde4563a3925418ca406a6c.tar.gz |
A warning is printed for every non-text file. This helps in detecting
broken file(1) databases. It also gives an indication of whether this
test is necessary at all.
Diffstat (limited to 'mk/subst.mk')
-rw-r--r-- | mk/subst.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/subst.mk b/mk/subst.mk index 30cb6d4bf76..a27c941d026 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.23 2005/08/21 22:00:07 rillig Exp $ +# $NetBSD: subst.mk,v 1.24 2005/11/17 23:17:02 rillig Exp $ # # This Makefile fragment implements a general text replacement facility. # Package makefiles define a ``class'', for each of which a particular @@ -96,6 +96,8 @@ ${_SUBST_COOKIE.${_class_}}: ${SUBST_POSTCMD.${_class_}}; \ ${ECHO} "$$file" >> ${.TARGET}; \ fi; \ + else \ + ${ECHO_SUBST_MSG} "[subst.mk] WARNING: Ignoring non-text file \"$$file\"." 1>&2; \ fi; \ done .endfor |