43 lines
689 B
Makefile
43 lines
689 B
Makefile
|
a4.pdf: main.md
|
||
|
pandoc\
|
||
|
--standalone\
|
||
|
-V urlcolor=RedViolet\
|
||
|
-V papersize:A4\
|
||
|
$< -o $@
|
||
|
|
||
|
a4.ps: a4.pdf
|
||
|
pdf2ps $< $@
|
||
|
|
||
|
a4-signature.ps: a4.ps
|
||
|
psbook $< $@
|
||
|
|
||
|
a5-signature.ps: a4-signature.ps
|
||
|
psnup -2 $< $@
|
||
|
|
||
|
a5-signature.pdf: a5-signature.ps
|
||
|
ps2pdf $< $@
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f a4.pdf
|
||
|
rm -f a4.ps
|
||
|
rm -f a4-signature.pdf
|
||
|
rm -f a4-signature.ps
|
||
|
rm -f a5-signature.pdf
|
||
|
rm -f a5-signature.ps
|
||
|
|
||
|
.PHONY: help
|
||
|
help:
|
||
|
@echo "Usage:"
|
||
|
@echo " make TARGET"
|
||
|
@echo
|
||
|
@echo "Available targets:"
|
||
|
@echo " a4.pdf"
|
||
|
@echo " a4.ps"
|
||
|
@echo " a4-signature.pdf"
|
||
|
@echo " a4-signature.ps"
|
||
|
@echo " a5-signature.pdf"
|
||
|
@echo " a5-signature.ps"
|
||
|
@echo " clean"
|
||
|
@echo " help"
|