source tree re-arrangement
[m6w6/btr] / lib / btr / report / mail.mk
diff --git a/lib/btr/report/mail.mk b/lib/btr/report/mail.mk
new file mode 100644 (file)
index 0000000..37b8a6c
--- /dev/null
@@ -0,0 +1,10 @@
+.PHONY: all
+.SUFFIXES:
+
+all: 
+       MESSAGE=$$(printf "\nbtr %s %s\n\n-- \nbtr mail report\n" "$(BUILD)" "$(REPORT)"); \
+       mail -s "[btr] $(BUILD) $(REPORT)" \
+               -a $(CONFIG_REPORT) -a $(BUILD_REPORT) -a $(TEST_REPORT) \
+               $(USER) <<<"$$MESSAGE"
+
+# vim: set noet