Move the MKDIR line to after we test if the source file exists or not, so
we don't create an empty directory with no files to populate in it.
This commit is contained in:
parent
24b4f04f58
commit
4c520bd9f3
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.buildlink.mk,v 1.7 2001/06/16 14:58:56 jlam Exp $
|
||||
# $NetBSD: bsd.buildlink.mk,v 1.8 2001/06/18 05:07:40 jlam Exp $
|
||||
#
|
||||
# This Makefile fragment is included by package buildlink.mk files. This
|
||||
# file does the following things:
|
||||
|
@ -106,8 +106,8 @@ _BUILDLINK_USE: .USE
|
|||
else \
|
||||
dest=`${ECHO} ${BUILDLINK_DIR}/$${file##${BUILDLINK_PREFIX.${.TARGET:S/-buildlink//}}/} | ${SED} ${BUILDLINK_TRANSFORM.${.TARGET:S/-buildlink//}}`; \
|
||||
fi; \
|
||||
${MKDIR} $${dest%/*}; \
|
||||
if [ -f $${file} ]; then \
|
||||
${MKDIR} $${dest%/*}; \
|
||||
${RM} -f $${dest}; \
|
||||
${LN} -sf $${file} $${dest}; \
|
||||
fi; \
|
||||
|
|
Loading…
Reference in a new issue