Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make dependencies clearer in Makefile, and omit copying of main.tex (…

…as it is now generated by convert_to_tex.sh
  • Loading branch information...
commit 5f71a521cfb3e5c17825041bdf68a09b5ffafc2e 1 parent ebb9822
@pettter pettter authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/Makefile
View
15 src/Makefile
@@ -6,20 +6,23 @@ BOOK_DIR=${BUILD_DIR}/.
all: latex-pdf combined
-tex:
+${BUILD_DIR}:
+ mkdir ${BUILD_DIR}
+
+${TEX_DIR}/main.tex: ${BUILD_DIR} convert_to_tex.sh
./convert_to_tex.sh ${TEX_DIR}
- cp main.tex ${TEX_DIR}
-latex-pdf: tex
+
+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.md:
+${BOOK_DIR}/book.md: ${BUILD_DIR}
cat chapter*/*.md > ${BOOK_DIR}/book.md
-combined: book.md
+combined: ${BOOK_DIR}/book.md
-install: book.md latex-pdf
+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
Please sign in to comment.
Something went wrong with that request. Please try again.