From 4a96d611324f7769ac4c3b25783ac39848a7b040 Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 9 Jun 2006 08:50:24 +0000 Subject: Fixed pkglint warnings. --- lang/perl5/packlist.mk | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'lang') diff --git a/lang/perl5/packlist.mk b/lang/perl5/packlist.mk index 0175677bc56..9c62fe0d258 100644 --- a/lang/perl5/packlist.mk +++ b/lang/perl5/packlist.mk @@ -1,4 +1,4 @@ -# $NetBSD: packlist.mk,v 1.6 2006/05/02 02:28:24 jlam Exp $ +# $NetBSD: packlist.mk,v 1.7 2006/06/09 08:50:24 rillig Exp $ # # This Makefile fragment is intended to be included by packages that # create packlist files. This file is automatically included by @@ -43,23 +43,23 @@ FILES_SUBST+= PERL5_PACKLIST=${_PERL5_PACKLIST:Q} # Generate the PLIST from the files listed in PERL5_PACKLIST. .if defined(_PERL5_PACKLIST) -PERL5_PLIST_COMMENT= \ +PERL5_PLIST_COMMENT_CMD= \ { ${ECHO} "@comment The following lines are automatically generated"; \ ${ECHO} "@comment from the installed .packlist files."; } -PERL5_PLIST_FILES= \ +PERL5_PLIST_FILES_CMD= \ { ${CAT} ${_PERL5_PACKLIST}; for f in ${_PERL5_PACKLIST}; do ${TEST} ! -f "$$f" || ${ECHO} "$$f"; done; } \ - | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ + | ${SED} -e "s,[ ].*,," -e "s,/\\./,/,g" -e "s,${PREFIX}/,," \ | ${SORT} -u -PERL5_PLIST_DIRS= \ +PERL5_PLIST_DIRS_CMD= \ { ${CAT} ${_PERL5_PACKLIST}; for f in ${_PERL5_PACKLIST}; do ${TEST} ! -f "$$f" || ${ECHO} "$$f"; done; } \ - | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ - -e "s,^,@unexec \${RMDIR} -p %D/," \ - -e "s,/[^/]*$$, 2>/dev/null || ${TRUE}," \ + | ${SED} -e "s,[ ].*,," -e "s,/\\./,/,g" -e "s,${PREFIX}/,," \ + -e "s,^,@unexec "${RMDIR:Q}" -p %D/," \ + -e "s,/[^/]*\$$, 2>/dev/null || "${TRUE:Q}"," \ | ${SORT} -ur -PERL5_GENERATE_PLIST= ${PERL5_PLIST_COMMENT}; \ - ${PERL5_PLIST_FILES}; \ - ${PERL5_PLIST_DIRS} -GENERATE_PLIST+= ${PERL5_GENERATE_PLIST}; +PERL5_GENERATE_PLIST= ${PERL5_PLIST_COMMENT_CMD}; \ + ${PERL5_PLIST_FILES_CMD}; \ + ${PERL5_PLIST_DIRS_CMD}; +GENERATE_PLIST+= ${PERL5_GENERATE_PLIST} .endif ########################################################################### @@ -84,6 +84,7 @@ _PERL5_PACKLIST_AWK_ADD_MANZ.yes= \ post-install: perl-packlist .endif +.PHONY: perl-packlist perl-packlist: ${_PKG_SILENT}${_PKG_DEBUG} \ ${TEST} -n ${_PERL5_PACKLIST:Q}"" || exit 0; \ -- cgit v1.2.3