criptolibretto/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

2018-04-19 16:01:33 +02:00
book-a4.pdf: book.md
pandoc \
--standalone \
--toc \
--toc-depth 2 \
--number-sections \
--highlight-style zenburn \
2019-01-15 02:37:25 +01:00
-V documentclass:extarticle \
-V papersize:A4 \
2018-04-19 16:01:33 +02:00
-V fontsize:14pt \
-V geometry:"top=2.5cm, \
bottom=2.6cm, \
2019-01-15 02:37:25 +01:00
left=2.5cm, \
right=2.5cm" \
2018-04-19 16:01:33 +02:00
$< -o $@
book-a4.ps: book-a4.pdf
pdf2ps $< $@
book-a4-signature.ps: book-a4.ps
psbook $< $@
2018-04-19 18:06:26 +02:00
book-a5-signature.ps: book-a4-signature.ps
2018-04-19 16:01:33 +02:00
psnup -2 $< $@
book-a5-signature.pdf: book-a5-signature.ps
ps2pdf $< $@
.PHONY: clean
clean:
rm -f book-a4.pdf
rm -f book-a4.ps
rm -f book-a4-signature.pdf
rm -f book-a4-signature.ps
rm -f book-a5-signature.pdf
rm -f book-a5-signature.ps
.PHONY: help
help:
@echo "Usage:"
@echo " make TARGET"
@echo
@echo "Available targets:"
@echo " book-a4.pdf"
@echo " book-a4.ps"
@echo " book-a4-signature.pdf"
@echo " book-a4-signature.ps"
@echo " book-a5-signature.pdf"
@echo " book-a5-signature.ps"
@echo " clean"
@echo " help"