Skip to content

Commit 3e02af0

Browse files
committed
Reintroduce the mkdir calls
It was not dealing with subdirectories..
1 parent 7da9f5b commit 3e02af0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

book/makefile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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

142141
epub/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
150146
copy_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

153150
low-res-book-epub/OEBPS/%.jpg: %.jpg | low-res-book-epub-dir
154151
$(CONVERT_PIC) $< $(REDUCE_PIC_COLOR) $@

0 commit comments

Comments
 (0)