diff options
author | joerg <joerg@pkgsrc.org> | 2007-09-06 20:54:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-09-06 20:54:53 +0000 |
commit | 4f84d697c284a321d3e004f7384da208ce00c36a (patch) | |
tree | 1f2177b94e1eec1f4dbb28f3f3aa24198197e453 /mk/fetch | |
parent | f2b940ec221a11c84846f062ae19aad8827b28b0 (diff) | |
download | pkgsrc-4f84d697c284a321d3e004f7384da208ce00c36a.tar.gz |
If DISTDIR points to a non-existing location and a package has neither
PATCHFILES nor DISTFILES, make fetch would complain about an unbuildable
dependency. Fix this by explicitly checking that _ALLFILES is not empty.
Reported by Sean Boudreau.
Diffstat (limited to 'mk/fetch')
-rw-r--r-- | mk/fetch/fetch.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk index 2a5311daafb..85a698e359a 100644 --- a/mk/fetch/fetch.mk +++ b/mk/fetch/fetch.mk @@ -1,4 +1,4 @@ -# $NetBSD: fetch.mk,v 1.29 2007/08/14 14:19:19 joerg Exp $ +# $NetBSD: fetch.mk,v 1.30 2007/09/06 20:54:53 joerg Exp $ _MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} @@ -113,8 +113,13 @@ fetch: ${_FETCH_TARGETS} .PHONY: pre-fetch do-fetch post-fetch .if !target(do-fetch) +. if !empty(_ALLFILES) do-fetch: ${_ALLFILES:S/^/${DISTDIR}\//} @${DO_NADA} +. else +do-fetch: + @${DO_NADA} +. endif .endif .if !target(pre-fetch) |