4 Commits

Author SHA1 Message Date
Ced
5bb5d8a48a Add missing target in low-res ebook copy
Some checks failed
Release the book and website / build-and-push-image (push) Has been cancelled
Release the book and website / release-book-website (push) Has been cancelled
Release the book and website / invalidate-book-website-cache (push) Has been cancelled
2025-03-05 16:49:59 +00:00
Ced
f64fc55977 Reintroduce the mkdir calls for real this time 2025-03-05 14:28:13 +00:00
Ced
3e02af03ad Reintroduce the mkdir calls
It was not dealing with subdirectories..
2025-03-05 14:17:01 +00:00
Ced
7da9f5b0ad Fix epub build and remove redudant mkdir calls
1) ebook was still using the old target
2) Do not call mkdir -p for every single image conversion
2025-03-05 13:56:42 +00:00

View File

@@ -83,7 +83,7 @@ website_dir := static_website_html
website_assets := $(wildcard ../website/assets/*)
ruby_src := ../website/modify_build.rb $(website_assets)
ruby_pkg := ../website/Gemfile ../website/Gemfile.lock
#}}}
# }}}
# Internal build rules {{{
# Flowcharts {{{
@@ -118,7 +118,7 @@ book_sans_serif/book_sans_serif.pdf: $(src_all)
epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb
$(EBOOK) $<
copy_ebook_files: build_ebook
copy_ebook_files: ebook
$(RSYNC) --exclude '*.png' epub_build/book-epub/ bw-book-epub/
# Now that we have built the ebook we will generate 2 more versions
@@ -153,7 +153,7 @@ low-res-book-epub/OEBPS/%.jpg: %.jpg
epub/low_res_book.epub: copy_ebook_files_low_res $(low_res_images)
cd low-res-book-epub; zip -q0X ../epub/low_res_book.epub mimetype
cd low-res-book-epub; zip -q9XrD ../epub/low_res_book.epub ./
#}}}
# }}}
# Website {{{
###################################
@@ -186,7 +186,7 @@ export_figures: pdf $(tgt_figures)
# }}}
# User level targets {{{
# Build targets{{{
# Build targets {{{
.PHONY: all
all: bake
@@ -200,9 +200,9 @@ sans_serif: book_sans_serif/book_sans_serif.pdf
ebook: epub/book.epub
bw_ebook: epub/bw_book.epub
low_res_ebook: epub/low_res_book.epub
#}}}
# }}}
# Old target names are disabled with helpful help message #{{{
# Old target names are disabled with helpful help message {{{
build_pdf:
@echo "build_pdf target is not supported anymore, please use make pdf"
@exit
@@ -221,7 +221,7 @@ build_bw_ebook:
build_low_res_ebook:
@echo "build_low_res_ebook target is not supported anymore, please use make low_res_ebook"
@exit
#}}}
# }}}
# Top level releases rules {{{
.PHONY: bake release_serif release_sans_serif
@@ -282,7 +282,7 @@ mrproper: clean
-rm -rf book_serif/ book_sans_serif/
-rm -rf epub/ epub_build/ bw-book-epub/ low-res-book-epub/
-rm -rf website_build/ $(website_dir)
#}}}
# }}}
# Help {{{
###################################