diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index 0915c9d..8bf6d71 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -151,7 +151,7 @@ while [ $# -gt 0 ]; do #create source="${target#$OBJDIR}" source="${source}.in" - $DEBUG $MKDIR -- "${target%/*}" || exit 2 + ([ -z "$OBJDIR" ] || $DEBUG $MKDIR -- "${target%/*}") || exit 2 $DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \ -e "s;@VERSION@;$VERSION;" \ -e "s;@PREFIX@;$PREFIX;" \