From 540410341e44739e37bd76dd0d1c4cbb84a23e88 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 29 Dec 2016 21:13:09 +0100 Subject: [PATCH] Fix compiling without OBJDIR --- doc/scripts/pkgconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;" \