diff options
author | joerg <joerg> | 2007-09-06 20:54:53 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-09-06 20:54:53 +0000 |
commit | 853c8b8b0f2d26f8ebf94e4a1662937c5b0ea17e (patch) | |
tree | 1f2177b94e1eec1f4dbb28f3f3aa24198197e453 /mk | |
parent | ef70bbbca03e4d7e41b8836ffabec63c7e81ff2f (diff) | |
download | pkgsrc-853c8b8b0f2d26f8ebf94e4a1662937c5b0ea17e.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')
-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) |