Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6bcdd9b442
Fetching contributors…

Cannot retrieve contributors at this time

file 27 lines (18 sloc) 0.667 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
BUILD_DIR=build
INSTALL_DIR=/path/to/install

TEX_DIR=${BUILD_DIR}/tex
BOOK_DIR=${BUILD_DIR}/.

all: latex-pdf combined

${BUILD_DIR}:
mkdir ${BUILD_DIR}

${TEX_DIR}/main.tex: ${BUILD_DIR} convert_to_tex.sh
./convert_to_tex.sh ${TEX_DIR}


latex-pdf: ${TEX_DIR}/main.tex
pdflatex --output-dir=${TEX_DIR} ${TEX_DIR}/main.tex
pdflatex --output-dir=${TEX_DIR} ${TEX_DIR}/main.tex

${BOOK_DIR}/book.md: ${BUILD_DIR}
cat chapter*/*.md > ${BOOK_DIR}/book.md

combined: ${BOOK_DIR}/book.md

install: combined latex-pdf
cp ${TEX_DIR}/main.pdf ${INSTALL_DIR}/cryptoparty-handbook-`date +%F`.pdf
cp ${BOOK_DIR}/book.md ${INSTALL_DIR}/cryptoparty-handbook-`date +%F`.md
Something went wrong with that request. Please try again.