Makefile 552 B

123456789101112131415161718192021
  1. all: odf mailodf.1
  2. txt: mailodf.txt
  3. %.1: %.docbook
  4. xmlto man $<
  5. %.txt: %.docbook
  6. xmlto txt $<
  7. clean:
  8. rm -f *.1 *~ *.txt odf
  9. odf:
  10. ln -s ../odf
  11. test: clean odf
  12. @echo -n "Please input your local email for the test > "; read to; \
  13. python2 mailodf -f python2@python.org -s "F.Y.I" ../tests/examples/ol.odp "$$to"; \
  14. python3 mailodf -f python3@python.org -s "F.Y.I" ../tests/examples/ol.odp "$$to"
  15. @echo 'You should receive two e-mails, one from python2@python.org'
  16. @echo 'and the second from python3@python.org, with subjects: "F.Y.I"'