Create the parent directory before creating the target file

Fixes building with OBJDIR.
This commit is contained in:
Pierre Pronchery 2016-12-29 20:03:08 +01:00
parent e43aadfb42
commit 2cce47a644

View File

@ -148,6 +148,7 @@ while [ $# -gt 0 ]; do
#create
source="${target#$OBJDIR}"
source="${source}.in"
$DEBUG $MKDIR -- "${target%/*}" || exit 2
$DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \
-e "s;@VERSION@;$VERSION;" \
-e "s;@PREFIX@;$PREFIX;" \