Un criptolibretto in puro testo con formattazione markdown, convertibile in PDF via pandoc e stampabile in formato pieghevole. Con documentazione. https://unit.abbiamoundominio.org/criptolibretto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. book-a4.pdf: book.md
  2. pandoc \
  3. --standalone \
  4. --toc \
  5. --toc-depth 2 \
  6. --number-sections \
  7. --highlight-style zenburn \
  8. -V documentclass:extarticle \
  9. -V papersize:A4 \
  10. -V fontsize:14pt \
  11. -V geometry:"top=2.5cm, \
  12. bottom=2.6cm, \
  13. left=2.5cm, \
  14. right=2.5cm" \
  15. $< -o $@
  16. book-a4.ps: book-a4.pdf
  17. pdf2ps $< $@
  18. book-a4-signature.ps: book-a4.ps
  19. psbook $< $@
  20. book-a5-signature.ps: book-a4-signature.ps
  21. psnup -2 $< $@
  22. book-a5-signature.pdf: book-a5-signature.ps
  23. ps2pdf $< $@
  24. .PHONY: clean
  25. clean:
  26. rm -f book-a4.pdf
  27. rm -f book-a4.ps
  28. rm -f book-a4-signature.pdf
  29. rm -f book-a4-signature.ps
  30. rm -f book-a5-signature.pdf
  31. rm -f book-a5-signature.ps
  32. .PHONY: help
  33. help:
  34. @echo "Usage:"
  35. @echo " make TARGET"
  36. @echo
  37. @echo "Available targets:"
  38. @echo " book-a4.pdf"
  39. @echo " book-a4.ps"
  40. @echo " book-a4-signature.pdf"
  41. @echo " book-a4-signature.ps"
  42. @echo " book-a5-signature.pdf"
  43. @echo " book-a5-signature.ps"
  44. @echo " clean"
  45. @echo " help"