mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
buildsystem: always clean up $INSTALL / .$TARGET_NAME on rebuild
This commit is contained in:
@@ -257,6 +257,16 @@ if [ ! -f $STAMP ]; then
|
||||
INSTALL=$ROOT/$PKG_BUILD/.install_init
|
||||
fi
|
||||
|
||||
# clean up
|
||||
if [ ! -z "$INSTALL" ] ; then
|
||||
if [ -d "$INSTALL" ] ; then
|
||||
rm -rf $INSTALL
|
||||
fi
|
||||
fi
|
||||
if [ -d $PKG_BUILD/.$TARGET_NAME ] ; then
|
||||
rm -rf $PKG_BUILD/.$TARGET_NAME
|
||||
fi
|
||||
|
||||
# setup configure script
|
||||
if [ -z "$PKG_CONFIGURE_SCRIPT" ]; then
|
||||
PKG_CONFIGURE_SCRIPT="$ROOT/$PKG_BUILD/configure"
|
||||
|
||||
Reference in New Issue
Block a user