buildsystem: unpack on any package.mk change

This commit is contained in:
Stefan Saraev 2013-10-25 21:47:02 +03:00
parent 025b483542
commit 9029a76fa1

View File

@ -38,6 +38,13 @@ STAMP=$STAMPS/$1/unpack
[ -f "$STAMP" -a -f "$PKG_DIR/need_unpack" ] && $PKG_DIR/need_unpack $@
# trigger unpack / full rebuild on any package.mk change
if [ -f $PKG_DIR/package.mk ]; then
if [ -f $STAMP -a $PKG_DIR/package.mk -nt $STAMP ]; then
rm -f $STAMP
fi
fi
for patch in $PKG_DIR/patches/*; do
if [ "$patch" -nt "$STAMP" ]; then
rm -f $STAMP