[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No Subject
Hmmm, using the real-fetch as an example. This is what the
"new" real-fetch does:
real-fetch: fetch-depends
.if target(pre-fetch)
@cd ${.CURDIR} && make pre-fetch
.endif
.if !target(do-fetch)
# What FETCH normally does:
@cd ${.CURDIR} && make ${ALLFILES:S@^@${FULLDISTDIR}/@}
# End of FETCH
.endif
.if target(post-fetch)
@cd ${.CURDIR} && make post-fetch
.endif
Now how does this work if the application makefile overrides do-fetch?
The users "do-fetch" is never run. Don't you need something like:
real-fetch: fetch-depends
.if target(pre-fetch)
@cd ${.CURDIR} && make pre-fetch
.endif
.if target(do-fetch)
@cd ${.CURDIR} && make do-fetch
.else
# What FETCH normally does:
@cd ${.CURDIR} && make ${ALLFILES:S@^@${FULLDISTDIR}/@}
# End of FETCH
.endif
.if target(post-fetch)
@cd ${.CURDIR} && make post-fetch
.endif
// marc