summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-24 20:02:40 +0000
committerrillig <rillig@pkgsrc.org>2005-11-24 20:02:40 +0000
commit37b8605b92b969a04302bfa09ab9c647a30bc878 (patch)
tree0b3f5817f4c10c7de26bdd2c7eb7254a6919d7d8 /mk/subst.mk
parent477fc93c59242ec8bab916a4b30863f170c262ad (diff)
downloadpkgsrc-37b8605b92b969a04302bfa09ab9c647a30bc878.tar.gz
Added another diagnostic message to distinguish the cases for non-text
file and non-existant file.
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index a27c941d026..81ec7f1585d 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.24 2005/11/17 23:17:02 rillig Exp $
+# $NetBSD: subst.mk,v 1.25 2005/11/24 20:02:40 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -96,8 +96,10 @@ ${_SUBST_COOKIE.${_class_}}:
${SUBST_POSTCMD.${_class_}}; \
${ECHO} "$$file" >> ${.TARGET}; \
fi; \
- else \
+ elif ${TEST} -f "$$file"; then \
${ECHO_SUBST_MSG} "[subst.mk] WARNING: Ignoring non-text file \"$$file\"." 1>&2; \
+ else \
+ ${ECHO_SUBST_MSG} "[subst.mk] WARNING: Ignoring non-existant file \"$$file\"." 1>&2; \
fi; \
done
.endfor