Make sure TOOLDIR/bin exists before copying into it. Use 2 explicit mkdir's
here to avoid problems on host systems without mkdir -p
This commit is contained in:
parent
7b755f90f1
commit
b201a06833
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2002/01/21 20:04:37 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2002/02/12 19:54:16 jmc Exp $
|
||||
|
||||
TIMESTAMP= ${TOOLDIR}/bin/nbhost-mkdep
|
||||
|
||||
|
@ -15,7 +15,10 @@ host-mkdep: configure host-mkdep.in
|
|||
# This is the only program that comes before binstall.
|
||||
install: ${TIMESTAMP}
|
||||
${TIMESTAMP}: host-mkdep
|
||||
cp host-mkdep $@
|
||||
if [ ! -d ${TOOLDIR}/bin ]; then \
|
||||
mkdir ${TOOLDIR}; \
|
||||
mkdir ${TOOLDIR}/bin; \
|
||||
fi; cp host-mkdep $@
|
||||
chmod +x $@
|
||||
|
||||
# Run by hand, then "configure" script committed:
|
||||
|
|
Loading…
Reference in New Issue