diff options
author | rillig <rillig@pkgsrc.org> | 2007-02-19 10:18:33 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-02-19 10:18:33 +0000 |
commit | 5a2b72057231d6128256bfe45768f20087cecfaf (patch) | |
tree | 77da9334ba0b643995f764372e6205f3ac3541e5 /mk | |
parent | a24aae448d51bc49d6424643c0225c2f48976edd (diff) | |
download | pkgsrc-5a2b72057231d6128256bfe45768f20087cecfaf.tar.gz |
Made _DEPENDS_PATTERNS_CMD a little simpler.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/flavor/pkg/depends.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/flavor/pkg/depends.mk b/mk/flavor/pkg/depends.mk index 09278e72516..4f80c393be7 100644 --- a/mk/flavor/pkg/depends.mk +++ b/mk/flavor/pkg/depends.mk @@ -1,4 +1,4 @@ -# $NetBSD: depends.mk,v 1.16 2006/11/26 12:21:13 rillig Exp $ +# $NetBSD: depends.mk,v 1.17 2007/02/19 10:18:33 rillig Exp $ _DEPENDS_FILE= ${WRKDIR}/.depends _REDUCE_DEPENDS_CMD= ${SETENV} CAT=${CAT:Q} \ @@ -9,11 +9,11 @@ _REDUCE_DEPENDS_CMD= ${SETENV} CAT=${CAT:Q} \ # This command prints out the dependency patterns for all full (run-time) # dependencies of the package. # +# This is used in install.mk and metadata.mk. +# _DEPENDS_PATTERNS_CMD= \ - if ${TEST} -f ${_COOKIE.depends}; then \ - ${CAT} ${_COOKIE.depends} | \ - ${AWK} '/^full/ { print $$2 } { next }'; \ - fi + [ ! -f ${_COOKIE.depends} ] \ + || ${AWK} '$$1 == "full" { print; }' < ${_COOKIE.depends} .PHONY: show-depends show-depends: |