X-Git-Url: http://git.projectaon.org/?a=blobdiff_plain;f=common%2Fepub%2FMakefile.common;h=633416fd7f7abf56c494677f820f6ec90099ea94;hb=135919aaab57640b19715342b660c28026a09e3b;hp=3f41a6c5b7dd47c6153081ea758854dfdc66d181;hpb=df77a70185216159c28f29cd835346e594f6f3b5;p=project-aon.git diff --git a/common/epub/Makefile.common b/common/epub/Makefile.common index 3f41a6c..633416f 100644 --- a/common/epub/Makefile.common +++ b/common/epub/Makefile.common @@ -94,7 +94,7 @@ XSLFILES=$(RELXSLDIR)/epub-opf-metadata.xsl $(RELXSLDIR)/epub-xhtml.xsl \ # Generate the ePub file from the XML file epub: $(EPUB) -$(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB): $(XMLFILE) $(EPUBSCRIPT) $(XSLFILES) +$(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB): $(XMLFILE) $(XSLFILES) cd $(AONROOTDIR) && perl $(EPUBSCRIPT) --language=$(BLANG) --font-files=$(FONTDIR) $(BASENAME) # Create cover page if not existing @if [ ! -e $(COVERIMAGE) ] ; then \ @@ -108,7 +108,7 @@ $(EPUB): $(AONROOTDIR)/$(BLANG)/epub/$(SERIES)/$(BASENAME)/$(EPUB) @if [ -e $(ALTCOVERIMAGE) ] && [ ! -e $(COVERIMAGE) ] ; then \ ebook-convert $(EPUB) regen_$(EPUB) --cover $(ALTCOVERIMAGE) ; \ fi - @if [ ! -e $(COVERIMAGE) ] ; then \ + @if [ -e $(COVERIMAGE) ] ; then \ ebook-convert $(EPUB) regen_$(EPUB) --cover $(COVERIMAGE) ; \ fi @if [ ! -e $(ALTCOVERIMAGE) ] && [ ! -e $(COVERIMAGE) ] ; then \