Add Makefile
This commit is contained in:
parent
e0d08ecb3a
commit
b9e297f4c0
61
Makefile
Normal file
61
Makefile
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
book-a4.pdf: book.md
|
||||||
|
pandoc \
|
||||||
|
--standalone \
|
||||||
|
--toc \
|
||||||
|
--toc-depth 2 \
|
||||||
|
--number-sections \
|
||||||
|
--highlight-style zenburn \
|
||||||
|
-V documentclass:article \
|
||||||
|
-V papersize:a4 \
|
||||||
|
-V fontsize:14pt \
|
||||||
|
-V geometry:"top=2.5cm, \
|
||||||
|
bottom=2.6cm, \
|
||||||
|
left=2.8cm, \
|
||||||
|
right=2.8cm" \
|
||||||
|
$< -o $@
|
||||||
|
|
||||||
|
book-a4.ps: book-a4.pdf
|
||||||
|
pdf2ps $< $@
|
||||||
|
|
||||||
|
book-a4-signature.ps: book-a4.ps
|
||||||
|
psbook $< $@
|
||||||
|
|
||||||
|
book-a4-signature.pdf: book-a4-signature.ps
|
||||||
|
ps2pdf $< $@
|
||||||
|
|
||||||
|
book-a5.ps: book-a4.ps
|
||||||
|
psnup -2 $< $@
|
||||||
|
|
||||||
|
book-a5-signature.ps: book-a5.ps
|
||||||
|
psbook $< $@
|
||||||
|
|
||||||
|
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.pdf
|
||||||
|
rm -f book-a5.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.pdf"
|
||||||
|
@echo " book-a5.ps"
|
||||||
|
@echo " book-a5-signature.pdf"
|
||||||
|
@echo " book-a5-signature.ps"
|
||||||
|
@echo " clean"
|
||||||
|
@echo " help"
|
|
@ -2,15 +2,6 @@
|
||||||
title: "Cripto libretto"
|
title: "Cripto libretto"
|
||||||
author: Unit hacklab - unit@paranoici.org
|
author: Unit hacklab - unit@paranoici.org
|
||||||
date: 15 Aprile 2018
|
date: 15 Aprile 2018
|
||||||
documentclass: extarticle
|
|
||||||
papersize: A4
|
|
||||||
output: pdf_document
|
|
||||||
fontsize: 14pt
|
|
||||||
geometry: top=2.5cm, bottom=2.6cm, left=2.8cm, right=2.8cm
|
|
||||||
toc: true
|
|
||||||
number_sections: true
|
|
||||||
toc_depth: 2
|
|
||||||
highlight: zenburn
|
|
||||||
lang: italian
|
lang: italian
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue
Block a user