Makefile 521 B

123456789101112131415161718192021222324
  1. ADK_TOPDIR=$(pwd)
  2. all: pdf text html
  3. pdf:
  4. mkdir .pdf pdf
  5. cp *.txt .pdf
  6. cp images/*.png pdf
  7. a2x -v --dblatex-opts "-P latex.output.revhistory=0" -f pdf -d book -L -D pdf .pdf/manual.txt
  8. text:
  9. mkdir .text text
  10. cp *.txt .text
  11. cp images/*.png text
  12. a2x -v -f text -d book -L -D text .text/manual.txt
  13. html:
  14. mkdir .html html
  15. cp *.txt .html
  16. cp images/*.png html
  17. a2x -v --xsltproc-opts "--stringparam toc.section.depth 2" -f xhtml -d book -L -D html .html/manual.txt
  18. clean:
  19. rm -rf pdf .pdf text .text html .html