X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=rules.mk;h=05fa5e4cdec07e67bb7da787854b1c4507e2b611;hb=fa993b28dec1e2c29e543c2537d13a56e2ce996c;hp=e395f053c31cabed468674357d1b3458f57b0d1a;hpb=42cfb32d63a5a136a8d17594f0ded8102a35887c;p=bertos.git 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