66
67
$(MAKE) -f $(LIBDIR)/build.mk $*/notify.body B=$(@D)
68
69
echo "[cbuild] $${BTOP:-$(@D)} $(CONFIG_NAME) completed" > $@.subject
69
70
# Change the subject if anything failed
70
71
[ -z "$$(ls $(@D)/*failed.txt)" ] || echo "[cbuild] Failed: $${BTOP:-$(@D)} $(CONFIG_NAME) failed" > $@.subject
71
72
cat $*/notify.body | sendemail -q -f "$(NOTIFY_FROM)" -t "$(NOTIFY_ALWAYS)" -u "`cat $@.subject`" -s $(SMTP_HOST) $(SMTP_AUTH)