pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/pkgtasks mk/pkgtasks: Rename some make(1) variables...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6f2266ea70b6
branches: trunk
changeset: 366282:6f2266ea70b6
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Aug 10 05:25:10 2017 +0000
description:
mk/pkgtasks: Rename some make(1) variables to be more descriptive.
diffstat:
mk/pkgtasks/.files.mk.swp | Bin
mk/pkgtasks/files.mk | 20 ++++++++++----------
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (59 lines):
diff -r 494d9ae6f6e8 -r 6f2266ea70b6 mk/pkgtasks/.files.mk.swp
Binary file mk/pkgtasks/.files.mk.swp has changed
diff -r 494d9ae6f6e8 -r 6f2266ea70b6 mk/pkgtasks/files.mk
--- a/mk/pkgtasks/files.mk Wed Aug 09 12:47:41 2017 +0000
+++ b/mk/pkgtasks/files.mk Thu Aug 10 05:25:10 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.mk,v 1.3 2017/06/02 16:12:25 jlam Exp $
+# $NetBSD: files.mk,v 1.4 2017/08/10 05:25:10 jlam Exp $
#
# Copyright (c) 2017 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -110,13 +110,13 @@
# Assert that the variables have the right number of words and
# that no target file is listed in more than one variable.
#
-_ALL_FILES.files= # empty
+_ALL_TARGET_FILES.files= # empty
.for _var_ in CONF_FILES REQD_FILES _INIT_SCRIPTS
. if empty(${_var_}) || empty(${_var_}:C/.*/2/:M*:S/2 2//gW)
# ${_var_} has a multiple of 2 words.
. for s t in ${${_var_}}
-_FILES.${t}+= ${_var_}
-_ALL_FILES.files+= ${t}
+_FILE_VARLIST.${t}+= ${_var_}
+_ALL_TARGET_FILES.files+= ${t}
. endfor
. else
PKG_FAIL_REASON+= ${_var_:Q}" must have a multiple of 2 words."
@@ -126,16 +126,16 @@
. if empty(${_var_}) || empty(${_var_}:C/.*/5/:M*:S/5 5 5 5 5//gW)
# ${_var_} has a multiple of 5 words.
. for s t o g m in ${${_var_}}
-_FILES.${t}+= ${_var_}
-_ALL_FILES.files+= ${t}
+_FILE_VARLIST.${t}+= ${_var_}
+_ALL_TARGET_FILES.files+= ${t}
. endfor
. else
PKG_FAIL_REASON+= ${_var_:Q}" must have a multiple of 5 words."
. endif
.endfor
-.for t in ${_ALL_FILES.files:O:u}
-. if ${_FILES.${t}:[#]} != 1
-PKG_FAIL_REASON+= ${t:Q}" is listed more than once: "${_FILES.${t}:Q}
+.for t in ${_ALL_TARGET_FILES.files:O:u}
+. if ${_FILE_VARLIST.${t}:[#]} != 1
+PKG_FAIL_REASON+= ${t:Q}" is listed more than once: "${_FILE_VARLIST.${t}:Q}
. endif
.endfor
@@ -151,7 +151,7 @@
.if defined(PKG_SYSCONFSUBDIR) && !empty(PKG_SYSCONFSUBDIR)
# Always create ${PKG_SYSCONFDIR} if ${PKG_SYSCONFSUBDIR} is non-empty.
MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${PKG_SYSCONFDIR_PERMS}
-.elif !empty(_ALL_FILES.files:M${PKG_SYSCONFDIR}/*)
+.elif !empty(_ALL_TARGET_FILES.files:M${PKG_SYSCONFDIR}/*)
# Create ${PKG_SYSCONFDIR} if any target files are in that directory.
MAKE_DIRS+= ${PKG_SYSCONFDIR}
.endif
Home |
Main Index |
Thread Index |
Old Index