X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fepub%2FMakefile.common;h=8a61c48f5b49aced39edd682ad1d2b0eba3c84ad;hp=73e205ad2638d58ed1236661cefae2735bab15d4;hb=55c699b91078bdf221aac2689840fa62647a7226;hpb=f4bdee5083ca9a72713637e1e979aa183e06faea diff --git a/common/epub/Makefile.common b/common/epub/Makefile.common index 73e205a..8a61c48 100644 --- a/common/epub/Makefile.common +++ b/common/epub/Makefile.common @@ -11,6 +11,7 @@ RELSCRIPT := $(AONROOTDIR)/common/scripts # Relative location of the xsl files RELXSLDIR := $(AONROOTDIR)/common/xsl EPUBSCRIPT := $(RELSCRIPT)/gbtoepub.pl +COVERIMAGE := $(AONROOTDIR)/$(BLANG)/jpeg/$(SERIES)/$(BASENAME)/skins/ebook/cover.jpg EPUB=$(BASENAME).epub MOBI=$(BASENAME).mobi @@ -43,8 +44,8 @@ $(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB): $(XMLFILE) $(EPUBSCRI $(EPUB): $(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB) cp -p $(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB) . -# Regenerate to include the covers properly within the Ebook - ebook-convert $(EPUB) regen_$(EPUB) +# Regenerate to include the covers properly within the Ebook and fix the EPUB + ebook-convert $(EPUB) regen_$(EPUB) --cover $(COVERIMAGE) mv regen_$(EPUB) $(EPUB) -rm -f cover.jpg $(BASENAME).opf