mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-08 12:11:11 -06:00
Reintroduce the mkdir calls
It was not dealing with subdirectories..
This commit is contained in:
@@ -130,25 +130,22 @@ copy_ebook_files: ebook
|
|||||||
|
|
||||||
# We do not convert SVG to B&W or lower res for now as they are super small
|
# We do not convert SVG to B&W or lower res for now as they are super small
|
||||||
# anyway
|
# anyway
|
||||||
bw-book-epub-dir:
|
bw-book-epub/OEBPS/%.jpg: %.jpg
|
||||||
mkdir -p bw-book-epub/OEBPS
|
mkdir -p $(dir $@)
|
||||||
|
|
||||||
bw-book-epub/OEBPS/%.jpg: %.jpg | bw-book-epub-dir
|
|
||||||
$(CONVERT_PIC) $< $(REDUCE_PIC) $@
|
$(CONVERT_PIC) $< $(REDUCE_PIC) $@
|
||||||
|
|
||||||
bw-book-epub/OEBPS/%.png: %.png | bw-book-epub-dir
|
bw-book-epub/OEBPS/%.png: %.png
|
||||||
|
mkdir -p $(dir $@)
|
||||||
$(CONVERT_PIC) $< $(REDUCE_PIC) $@
|
$(CONVERT_PIC) $< $(REDUCE_PIC) $@
|
||||||
|
|
||||||
epub/bw_book.epub: copy_ebook_files $(bw_images)
|
epub/bw_book.epub: copy_ebook_files $(bw_images)
|
||||||
cd bw-book-epub; zip -q0X ../epub/bw_book.epub mimetype
|
cd bw-book-epub; zip -q0X ../epub/bw_book.epub mimetype
|
||||||
cd bw-book-epub; zip -q9XrD ../epub/bw_book.epub ./
|
cd bw-book-epub; zip -q9XrD ../epub/bw_book.epub ./
|
||||||
|
|
||||||
# Now the low res | low-res-book-epub-dir
|
# Now the low res
|
||||||
low-res-book-epub-dir:
|
|
||||||
mkdir -p low-res-book-epub/OEBPS
|
|
||||||
|
|
||||||
copy_ebook_files_low_res: ebook
|
copy_ebook_files_low_res: ebook
|
||||||
$(RSYNC) epub_build/book-epub/ low-res-book-epub/
|
mkdir -p $(dir $@)
|
||||||
|
$(RSYNC) epub_build/book-epub/
|
||||||
|
|
||||||
low-res-book-epub/OEBPS/%.jpg: %.jpg | low-res-book-epub-dir
|
low-res-book-epub/OEBPS/%.jpg: %.jpg | low-res-book-epub-dir
|
||||||
$(CONVERT_PIC) $< $(REDUCE_PIC_COLOR) $@
|
$(CONVERT_PIC) $< $(REDUCE_PIC_COLOR) $@
|
||||||
|
|||||||
Reference in New Issue
Block a user