summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb>2003-12-23 18:27:24 +0000
committerseb <seb>2003-12-23 18:27:24 +0000
commita83895b65f6ad2de2b5d53d6dfc79cf63267eca8 (patch)
tree0fc22243b599f75f6eb7e8d5adaec79436b3b637 /mk
parente5097ad9634a1c616fc88a6fa284885d9dd7dc05 (diff)
downloadpkgsrc-a83895b65f6ad2de2b5d53d6dfc79cf63267eca8.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')
-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