diff options
author | rillig <rillig> | 2007-02-19 10:18:33 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-02-19 10:18:33 +0000 |
commit | ed22841e7aeb4dc6d561392c1a227701c101cf61 (patch) | |
tree | 77da9334ba0b643995f764372e6205f3ac3541e5 /mk/flavor | |
parent | 60779fd6662d955ec4662d591bfa26d6ee4df571 (diff) | |
download | pkgsrc-ed22841e7aeb4dc6d561392c1a227701c101cf61.tar.gz |
Made _DEPENDS_PATTERNS_CMD a little simpler.
Diffstat (limited to 'mk/flavor')
-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: |