summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-04-28 21:08:34 +0000
committerjperkin <jperkin>2015-04-28 21:08:34 +0000
commit9a460518c0b2387b07c75d8197b83499ca22e2fb (patch)
treec149295393d50270d56b381e2bce750614ff0b85 /mk
parentb837486fe829df92c9fdbbbe8033ad73ff54b87e (diff)
downloadpkgsrc-9a460518c0b2387b07c75d8197b83499ca22e2fb.tar.gz
Ensure the wrapper directories are created before WRAPPER_TARGETS.
Diffstat (limited to 'mk')
-rw-r--r--mk/cwrappers.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/cwrappers.mk b/mk/cwrappers.mk
index 5a80afe4449..bf47e252209 100644
--- a/mk/cwrappers.mk
+++ b/mk/cwrappers.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cwrappers.mk,v 1.23 2015/04/27 19:59:07 jperkin Exp $
+# $NetBSD: cwrappers.mk,v 1.24 2015/04/28 21:08:34 jperkin Exp $
#
# This Makefile fragment implements integration of pkgtools/cwrappers.
@@ -67,7 +67,6 @@ generate-cwrappers: ${_target_}
.endfor
generate-cwrappers:
- ${RUN}${MKDIR} ${CWRAPPERS_CONFIG_DIR} ${WRAPPER_BINDIR}
.for wrappee in as cxx cc cpp f77 imake ld libtool shlibtool
${RUN}echo worklog=${WRKLOG:Q} > ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
${RUN}echo wrksrc=${WRKSRC:Q} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
@@ -123,13 +122,16 @@ ${_COOKIE.wrapper}: real-wrapper
.endif
.PHONY: real-wrapper
-real-wrapper: wrapper-message wrapper-vars pre-wrapper do-wrapper post-wrapper wrapper-cookie error-check
+real-wrapper: wrapper-message wrapper-dirs wrapper-vars pre-wrapper do-wrapper post-wrapper wrapper-cookie error-check
.PHONY: wrapper-message
-
wrapper-message:
@${PHASE_MSG} "Creating toolchain wrappers for ${PKGNAME}"
+.PHONY: wrapper-dirs
+wrapper-dirs:
+ ${RUN}${MKDIR} ${CWRAPPERS_CONFIG_DIR} ${WRAPPER_BINDIR}
+
.PHONY: pre-wrapper do-wrapper post-wrapper
do-wrapper: generate-cwrappers