* Fix install-perl in swig/

* Run make clean before make mrproper
This commit is contained in:
pancake 2010-07-13 12:15:36 +02:00
parent 3131a9a7cf
commit b58a0bac89
2 changed files with 5 additions and 3 deletions

View File

@ -222,7 +222,8 @@ else
fi
if [ -e "config-user.mk" ]; then
log "[==] Running mrproper..."
log "[==] Running clean and mrproper..."
${MAKE} clean 2>&1 > /dev/null
${MAKE} mrproper 2>&1 > /dev/null
fi
@ -293,7 +294,8 @@ done
if [ -n "$cc" ]; then
log "[==] mingw32 build using $cc"
if [ -e "config-user.mk" ]; then
${MAKE} ${MAKEFLAGS} mrproper 2>&1 >/dev/null
${MAKE} clean 2>&1 > /dev/null
${MAKE} mrproper 2>&1 >/dev/null
fi
log "[==] mingw32 configure"
logcmd ./configure --without-gmp --with-ostype=windows --with-compiler=$cc --host=i586-unknown-windows

View File

@ -78,7 +78,7 @@ install-ruby:
install-perl:
@if [ "`grep perl supported.langs`" ]; then \
target=${DESTDIR}`perl -e 'for (@INC) { print "$$_\n" if /lib\/perl5/ && !/local/; }'` ; \
target=${DESTDIR}`perl -e 'for (@INC) { print "$$_\n" if /lib\/perl5/ && !/local/; }'|head -n 1` ; \
mkdir -p $$target/r2 ; \
echo "Installing perl r2 modules..." ; \
cp -rf perl/*.so $$target/r2 ; \