Skip to content

Commit

Permalink
Fix missing dependency for low-res epub
Browse files Browse the repository at this point in the history
the png files will be provided by rsync but make does not know that so
just removing them from dependency list for now.

TODO: Is there a better fix?
  • Loading branch information
cedounet committed Dec 31, 2024
1 parent 32d6000 commit 6202f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ images += $(foreach directory, $(chapters), $(wildcard $(directory)/*/*.png))
# images to lower resolution and greyscale
bw_images := $(addprefix bw-book-epub/OEBPS/, $(images))

# Reduced ebook, we will just re-zip directory after converting the
# images to lower resolution
# For lower res colour ebook we would not convert png as it only get worst
# we will copy them instead... so remove them as a dependency.
low_res_images := $(addprefix low-res-book-epub/OEBPS/, $(images))
low_res_images := $(filter-out %.png, $(low_res_images))

src_all := $(src_tex) $(src_figures) $(src_tables) $(images) $(src_plots)

Expand Down

0 comments on commit 6202f44

Please sign in to comment.