Support installing targets in sub-directories
This commit is contained in:
parent
e9721ca82f
commit
252f0f5579
@ -195,7 +195,11 @@ while [ $# -gt 0 ]; do
|
|||||||
#install
|
#install
|
||||||
if [ "$install" -eq 1 ]; then
|
if [ "$install" -eq 1 ]; then
|
||||||
source="${target#$OBJDIR}"
|
source="${target#$OBJDIR}"
|
||||||
$DEBUG $MKDIR -- "$instdir" || exit 2
|
dirname=
|
||||||
|
if [ "${source%/*}" != "$source" ]; then
|
||||||
|
dirname="/${source%/*}"
|
||||||
|
fi
|
||||||
|
$DEBUG $MKDIR -- "$instdir$dirname" || exit 2
|
||||||
$DEBUG $INSTALL "$target" "$instdir/$source" || exit 2
|
$DEBUG $INSTALL "$target" "$instdir/$source" || exit 2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user