From de02462517638b3cf105ad3553bc3de51666bdf7 Mon Sep 17 00:00:00 2001 From: Gulliver Date: Sun, 1 Aug 2021 09:18:23 +0200 Subject: [PATCH] added makefile for build form all tools and collecting into bundle dir (and archive later) --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c5f7b4c --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +.PHONY: mdbook crowbook sphinx bundle + +all: mdbook crowbook sphinx + +mdbook: + -mdbook build mdbook + -cd mdbook; RUST_BACKTRACE=1 mdbook-epub --standalone + +crowbook: + crowbook crowbook/wtf-handbook.book + +sphinx: + $(MAKE) -C sphinx singlehtml epub latexpdf + +bundle: + -mkdir bundle + cp mdbook/book/epub/RTFM\ -\ Das\ WTF\ Kooperative\ Handbuch.epub bundle/mdbook_RTFM\ -\ Das\ WTF\ Kooperative\ Handbuch.epub + cp crowbook/wtf-handbook.epub bundle/crowbook_wtf-handbook.epub + cp crowbook/wtf-handbook.pdf bundle/crowbook_wtf-handbook.pdf + cp crowbook/wtf-handbook.html bundle/crowbook_wtf_handbook.html + cp sphinx/build/epub/DasHandbuchzurWTFeG.epub bundle/sphinx_DasHandbuchzurWTFeG.epub + rsync -av --delete sphinx/build/singlehtml/ bundle/sphinx_html