1
0

Makefile 390 B

1234567891011121314151617181920
  1. NAME=autopostgresqlbackup
  2. all: man
  3. man: ${NAME}.1
  4. ${NAME}.1: Documentation.md
  5. ronn \
  6. --manual autopostgresqlbackup \
  7. --name autopostgresqlbackup \
  8. --section 1 \
  9. -r Documentation.md
  10. # Fix duplicate "NAME" section
  11. tr '\n' '\0' < Documentation.1 \
  12. | sed -E 's,\.SH "NAME".\\fB[a-zA-Z0-9]+\\fR.,,' \
  13. | tr '\0' '\n' > ${NAME}.1
  14. rm -f Documentation.1
  15. clean:
  16. rm -f ${NAME}.1