From: bernie Date: Mon, 18 Feb 2008 15:41:52 +0000 (+0000) Subject: Invert test on moc success X-Git-Tag: 1.0.0~121 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fa993b28dec1e2c29e543c2537d13a56e2ce996c;p=bertos.git Invert test on moc success git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1131 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/rules.mk b/rules.mk index e395f053..05fa5e4c 100644 --- a/rules.mk +++ b/rules.mk @@ -217,8 +217,8 @@ $(foreach t,$(TRG),$(eval $(call build_target,$(t)))) # leading to puzzling linker errors. Kill 'em and abort build. %_moc.cpp: %.h $(MOC) -o $@ $< - if [ -s $< ]; then \ - rm $@; \ + if [ ! -s $< ]; then \ + rm -f $@; \ exit 1; \ fi