diff options
author | grant <grant@pkgsrc.org> | 2003-12-11 00:05:36 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-12-11 00:05:36 +0000 |
commit | 4c79cc3ca7097ec6ef5ce7ac1c03710712fd8f8d (patch) | |
tree | fac9b74c45a3a9ed31d8a3bfdbc132ecb1fa5f39 /mk/subst.mk | |
parent | 47259e8197b17c83424ef264f7e5d1a85dde3068 (diff) | |
download | pkgsrc-4c79cc3ca7097ec6ef5ce7ac1c03710712fd8f8d.tar.gz |
only print SUBST_MESSAGE if it's defined.
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 2cd96208b0f..d53014eaa25 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.3 2003/10/07 10:19:09 jlam Exp $ +# $NetBSD: subst.mk,v 1.4 2003/12/11 00:05:36 grant Exp $ # # This Makefile fragment implements a general text replacement facility # for different classes of files in ${WRKSRC}. For each class of files, @@ -55,8 +55,10 @@ subst-${_class_}: ${_SUBST_TARGETS.${_class_}} .PHONY: subst-${_class_}-message subst-${_class_}-message: +.if defined(SUBST_MESSAGE.${_class_}) ${_PKG_SILENT}${_PKG_DEBUG} \ ${ECHO_SUBST_MSG} "=> ${SUBST_MESSAGE.${_class_}}" +.endif .PHONY: subst-${_class_}-cookie subst-${_class_}-cookie: |