Kill MOC and use QT_MOC instead
[bertos.git] / bertos / rules.mk
index f898fcd94940f32e55456cec3970acfc2861908b..ff0357eebba8e26f92d5377f492efcd3978c1eb0 100644 (file)
@@ -276,7 +276,7 @@ $(foreach t,$(TRG),$(eval $(call build_target,$(t))))
 # NOTE: moc totally sucks and can generate empty files for some error conditions,
 #       leading to puzzling linker errors.  Kill 'em and abort build.
 %_moc.cpp: %.h
-       $(MOC) -o $@ $<
+       $(QT_MOC) -o $@ $<
        if [ ! -s $< ]; then \
                rm -f $@; \
                exit 1; \