summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorseb <seb>2003-12-23 18:27:24 +0000
committerseb <seb>2003-12-23 18:27:24 +0000
commit2d1e15fedd6d4c37b0b7f6a7e85b62477c842985 (patch)
tree0fc22243b599f75f6eb7e8d5adaec79436b3b637 /mk/bsd.pkg.mk
parentbdc1067764f8cef8ba8ac953a63be1515bf7a86e (diff)
downloadpkgsrc-2d1e15fedd6d4c37b0b7f6a7e85b62477c842985.tar.gz
Move message/${MESSAGE} target around, out of plist target and its
supporting code. While here comment the message target a bit.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk35
1 files changed, 19 insertions, 16 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 084bf0b0bb4..af44d79a7b2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1325 2003/12/23 11:14:20 tron Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1326 2003/12/23 18:27:24 seb Exp $
#
# This file is in the public domain.
#
@@ -4911,21 +4911,6 @@ GENERATE_PLIST+= ${PERL5_GENERATE_PLIST};
. endif
.endif
-.PHONY: message
-message: ${MESSAGE}
-.ifdef MESSAGE
-${MESSAGE}: ${MESSAGE_SRC}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -z "${MESSAGE_SRC}" ]; then \
- ${ECHO} "${MESSAGE_SRC} not found."; \
- ${ECHO} "Please set MESSAGE_SRC correctly."; \
- else \
- ${CAT} ${MESSAGE_SRC} | \
- ${SED} ${MESSAGE_SUBST_SED} \
- > ${MESSAGE}; \
- fi
-.endif
-
# GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
# that outputs contents for a PLIST to stdout and is appended to
# the contents of ${_PLIST_SRC}.
@@ -4964,6 +4949,24 @@ ${PLIST}: ${_PLIST_SRC}
${MAKE} ${MAKEFLAGS} do-shlib-handling \
SHLIB_PLIST_MODE=1
+# generate ${MESSAGE} from ${MESSAGE_SRC} by substituting
+# for MESSAGE_SUBST entries
+
+.PHONY: message
+message: ${MESSAGE}
+.ifdef MESSAGE
+${MESSAGE}: ${MESSAGE_SRC}
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ -z "${MESSAGE_SRC}" ]; then \
+ ${ECHO} "${MESSAGE_SRC} not found."; \
+ ${ECHO} "Please set MESSAGE_SRC correctly."; \
+ else \
+ ${CAT} ${MESSAGE_SRC} | \
+ ${SED} ${MESSAGE_SUBST_SED} \
+ > ${MESSAGE}; \
+ fi
+.endif
+
# generate ${DESCR} from ${DESCR_SRC} by:
# - Appending the homepage URL, if any