Create the parent directory before creating the target file

Fixes building with OBJDIR.
This commit is contained in:
Pierre Pronchery 2016-12-29 20:11:20 +01:00
parent 3e495db844
commit fd3e628984

View File

@ -112,6 +112,8 @@ _subst()
#create
source="${target#$OBJDIR}"
source="${source}.in"
([ -z "$OBJDIR" ] || $DEBUG $MKDIR -- "${target%/*}") \
|| return 2
$DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;g" \
-e "s;@VERSION@;$VERSION;g" \
-e "s;@PREFIX@;$PREFIX;g" \