From fa993b28dec1e2c29e543c2537d13a56e2ce996c Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 18 Feb 2008 15:41:52 +0000 Subject: [PATCH] Invert test on moc success git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1131 38d2e660-2303-0410-9eaa-f027e97ec537 --- rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1