diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-12 00:13:26 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-12 00:13:26 +0000 |
commit | 5644aacf253701c2a00960bf6f9b7758f456896a (patch) | |
tree | fd06c56a0e948a757ea22ef72533a70f87489242 /mk/check | |
parent | bd41165b43550103fb3231133f3089507129f8ce (diff) | |
download | pkgsrc-5644aacf253701c2a00960bf6f9b7758f456896a.tar.gz |
Moved the check for whether check-wrkref should be run from
install/install.mk to check/check-wrkref.mk.
Renamed the check-wrkref target to _check-wrkref.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-wrkref.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/check/check-wrkref.mk b/mk/check/check-wrkref.mk index bb26c30f23a..3249f6779e6 100644 --- a/mk/check/check-wrkref.mk +++ b/mk/check/check-wrkref.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-wrkref.mk,v 1.9 2006/11/12 00:09:50 rillig Exp $ +# $NetBSD: check-wrkref.mk,v 1.10 2006/11/12 00:13:26 rillig Exp $ # # This file checks that the installed files don't contain any strings # that point to the directory where the package had been built, to make @@ -42,7 +42,11 @@ PKG_FAIL_REASON+= "[check-wrkref.mk] CHECK_WRKREF must be one of { no tools work .endif _CHECK_WRKREF_DIR= ${_CHECK_WRKREF_DIR.${CHECK_WRKREF}} -check-wrkref: error-check .PHONY +.if empty(CHECK_WRKREF:M[nN][oO]) +privileged-install-hook: _check-wrkref +.endif + +_check-wrkref: error-check .PHONY @${STEP_MSG} "Checking for work-directory references in ${PKGNAME}" ${RUN} rm -f ${ERROR_DIR}/${.TARGET} ${_PKG_SILENT}${_PKG_DEBUG} \ |