mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-30 06:43:59 -06:00
Compare commits
4 Commits
19df1546f0
...
5bb5d8a48a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bb5d8a48a | ||
|
|
f64fc55977 | ||
|
|
3e02af03ad | ||
|
|
7da9f5b0ad |
@@ -83,7 +83,7 @@ website_dir := static_website_html
|
|||||||
website_assets := $(wildcard ../website/assets/*)
|
website_assets := $(wildcard ../website/assets/*)
|
||||||
ruby_src := ../website/modify_build.rb $(website_assets)
|
ruby_src := ../website/modify_build.rb $(website_assets)
|
||||||
ruby_pkg := ../website/Gemfile ../website/Gemfile.lock
|
ruby_pkg := ../website/Gemfile ../website/Gemfile.lock
|
||||||
#}}}
|
# }}}
|
||||||
|
|
||||||
# Internal build rules {{{
|
# Internal build rules {{{
|
||||||
# Flowcharts {{{
|
# Flowcharts {{{
|
||||||
@@ -118,7 +118,7 @@ book_sans_serif/book_sans_serif.pdf: $(src_all)
|
|||||||
epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb
|
epub/%.epub: %.tex $(ebook_src) cover/cover-page.xbb
|
||||||
$(EBOOK) $<
|
$(EBOOK) $<
|
||||||
|
|
||||||
copy_ebook_files: build_ebook
|
copy_ebook_files: ebook
|
||||||
$(RSYNC) --exclude '*.png' epub_build/book-epub/ bw-book-epub/
|
$(RSYNC) --exclude '*.png' epub_build/book-epub/ bw-book-epub/
|
||||||
|
|
||||||
# Now that we have built the ebook we will generate 2 more versions
|
# 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)
|
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 -q0X ../epub/low_res_book.epub mimetype
|
||||||
cd low-res-book-epub; zip -q9XrD ../epub/low_res_book.epub ./
|
cd low-res-book-epub; zip -q9XrD ../epub/low_res_book.epub ./
|
||||||
#}}}
|
# }}}
|
||||||
|
|
||||||
# Website {{{
|
# Website {{{
|
||||||
###################################
|
###################################
|
||||||
@@ -186,7 +186,7 @@ export_figures: pdf $(tgt_figures)
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# User level targets {{{
|
# User level targets {{{
|
||||||
# Build targets{{{
|
# Build targets {{{
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: bake
|
all: bake
|
||||||
|
|
||||||
@@ -200,9 +200,9 @@ sans_serif: book_sans_serif/book_sans_serif.pdf
|
|||||||
ebook: epub/book.epub
|
ebook: epub/book.epub
|
||||||
bw_ebook: epub/bw_book.epub
|
bw_ebook: epub/bw_book.epub
|
||||||
low_res_ebook: epub/low_res_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:
|
build_pdf:
|
||||||
@echo "build_pdf target is not supported anymore, please use make pdf"
|
@echo "build_pdf target is not supported anymore, please use make pdf"
|
||||||
@exit
|
@exit
|
||||||
@@ -221,7 +221,7 @@ build_bw_ebook:
|
|||||||
build_low_res_ebook:
|
build_low_res_ebook:
|
||||||
@echo "build_low_res_ebook target is not supported anymore, please use make low_res_ebook"
|
@echo "build_low_res_ebook target is not supported anymore, please use make low_res_ebook"
|
||||||
@exit
|
@exit
|
||||||
#}}}
|
# }}}
|
||||||
|
|
||||||
# Top level releases rules {{{
|
# Top level releases rules {{{
|
||||||
.PHONY: bake release_serif release_sans_serif
|
.PHONY: bake release_serif release_sans_serif
|
||||||
@@ -282,7 +282,7 @@ mrproper: clean
|
|||||||
-rm -rf book_serif/ book_sans_serif/
|
-rm -rf book_serif/ book_sans_serif/
|
||||||
-rm -rf epub/ epub_build/ bw-book-epub/ low-res-book-epub/
|
-rm -rf epub/ epub_build/ bw-book-epub/ low-res-book-epub/
|
||||||
-rm -rf website_build/ $(website_dir)
|
-rm -rf website_build/ $(website_dir)
|
||||||
#}}}
|
# }}}
|
||||||
|
|
||||||
# Help {{{
|
# Help {{{
|
||||||
###################################
|
###################################
|
||||||
|
|||||||
Reference in New Issue
Block a user