Add `-p' to the mkdir call.

When mixing this module with other build systems, modcargo-crates may be
under a subdirectory.
This commit is contained in:
ajacoutot 2022-09-10 08:17:00 +00:00
parent 10cef8ef72
commit 26ff940063
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ DISTFILES += ${_MODCARGO_DIST_SUBDIR}${_cratename}-${_cratever}.tar.gz{${_craten
# It will put all crates in the local crates directory.
MODCARGO_post-extract = \
${ECHO_MSG} "[modcargo] moving crates to ${MODCARGO_VENDOR_DIR}" ; \
mkdir ${MODCARGO_VENDOR_DIR} ;
mkdir -p ${MODCARGO_VENDOR_DIR} ;
.for _cratename _cratever in ${MODCARGO_CRATES}
MODCARGO_post-extract += \
mv ${WRKDIR}/${_cratename}-${_cratever} ${MODCARGO_VENDOR_DIR}/${_cratename}-${_cratever} ;