File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -130,25 +130,22 @@ copy_ebook_files: ebook
130130
131131# We do not convert SVG to B&W or lower res for now as they are super small
132132# anyway
133- bw-book-epub-dir :
134- mkdir -p bw-book-epub/OEBPS
135-
136- bw-book-epub/OEBPS/% .jpg : % .jpg | bw-book-epub-dir
133+ bw-book-epub/OEBPS/% .jpg : % .jpg
134+ mkdir -p $(dir $@ )
137135 $(CONVERT_PIC ) $< $(REDUCE_PIC ) $@
138136
139- bw-book-epub/OEBPS/% .png : % .png | bw-book-epub-dir
137+ bw-book-epub/OEBPS/% .png : % .png
138+ mkdir -p $(dir $@ )
140139 $(CONVERT_PIC ) $< $(REDUCE_PIC ) $@
141140
142141epub/bw_book.epub : copy_ebook_files $(bw_images )
143142 cd bw-book-epub; zip -q0X ../epub/bw_book.epub mimetype
144143 cd bw-book-epub; zip -q9XrD ../epub/bw_book.epub ./
145144
146- # Now the low res | low-res-book-epub-dir
147- low-res-book-epub-dir :
148- mkdir -p low-res-book-epub/OEBPS
149-
145+ # Now the low res
150146copy_ebook_files_low_res : ebook
151- $(RSYNC ) epub_build/book-epub/ low-res-book-epub/
147+ mkdir -p $(dir $@ )
148+ $(RSYNC ) epub_build/book-epub/
152149
153150low-res-book-epub/OEBPS/% .jpg : % .jpg | low-res-book-epub-dir
154151 $(CONVERT_PIC ) $< $(REDUCE_PIC_COLOR ) $@
You can’t perform that action at this time.
0 commit comments