Makefile 821 B

1234567891011121314151617181920212223242526
  1. all: css userguide pdf changelog perl
  2. userguide: txt/userguide.txt
  3. asciidoc --unsafe --out-file=html/userguide.html -a linkcss=1 -a theme=tdh txt/userguide.txt
  4. changelog: txt/ChangeLog.txt
  5. asciidoc --out-file=html/ChangeLog.html txt/ChangeLog.txt
  6. .PHONY: pdf
  7. pdf: txt/userguide.txt
  8. a2x -f pdf $<
  9. mv txt/userguide.pdf pdf/
  10. cd html && ln -sf ../pdf/userguide.pdf userguide.pdf
  11. rm txt/userguide.xml
  12. perl: txt/perl.txt
  13. asciidoc --unsafe --out-file=html/perl.html -a linkcss=1 -a theme=tdh txt/perl.txt
  14. css: html/toc.css
  15. cat /etc/asciidoc/stylesheets/xhtml11.css html/toc.css > html/tdh.css
  16. cp /etc/asciidoc/stylesheets/xhtml11-quirks.css html/tdh-quirks.css
  17. docbook: txt/userguide.txt
  18. asciidoc -b docbook --out-file=/tmp/userguide.xml txt/userguide.txt
  19. xmlto -o html html-nochunks /tmp/userguide.xml