Added support for OBJDIR

This commit is contained in:
Pierre Pronchery 2014-10-31 02:55:56 +01:00
parent b7a553b6a5
commit 2e4ce80eac

View File

@ -119,8 +119,9 @@ while [ $# -gt 0 ]; do
#install
if [ "$install" -eq 1 ]; then
source="${target#$OBJDIR}"
$DEBUG $MKDIR -- "$PKGCONFIG" || exit 2
$DEBUG $INSTALL "$target" "$PKGCONFIG/$target" || exit 2
$DEBUG $INSTALL "$target" "$PKGCONFIG/$source" || exit 2
continue
fi
@ -139,11 +140,13 @@ while [ $# -gt 0 ]; do
fi
#create
source="${target#$OBJDIR}"
source="${source}.in"
$DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \
-e "s;@VERSION@;$VERSION;" \
-e "s;@PREFIX@;$PREFIX;" \
-e "s;@RPATH@;$RPATH;" \
-- "$target.in" > "$target"
-- "$source" > "$target"
if [ $? -ne 0 ]; then
$DEBUG $RM -- "$target"
exit 2