pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Ensure the wrapper directories are created before W...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5c9d2713c09
branches:  trunk
changeset: 650938:f5c9d2713c09
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Apr 28 21:08:34 2015 +0000

description:
Ensure the wrapper directories are created before WRAPPER_TARGETS.

diffstat:

 mk/cwrappers.mk |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r dc24f61134a3 -r f5c9d2713c09 mk/cwrappers.mk
--- a/mk/cwrappers.mk   Tue Apr 28 21:06:32 2015 +0000
+++ b/mk/cwrappers.mk   Tue Apr 28 21:08:34 2015 +0000
@@ -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 @@
 .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 @@
 .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



Home | Main Index | Thread Index | Old Index