diff options
-rw-r--r-- | buildconfigs/Rules.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk index 37b694855d..fe02b1e11b 100644 --- a/buildconfigs/Rules.mk +++ b/buildconfigs/Rules.mk @@ -74,8 +74,8 @@ clean:: ref-%/.valid-ref: pristine-%/.valid-pristine rm -rf $(@D) cp -al $(<D) $(@D) - [ -d patches/$* ] && \ - for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done + ([ -d patches/$* ] && \ + for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true touch $@ # update timestamp to avoid rebuild %-build: |