Advertisement
scavph

makefile for ebooks of The Source of Fire

Jul 25th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.11 KB | None | 0 0
  1. ebooks: epub mobi
  2.  
  3. epub:   build/TheSourceOfFire.epub
  4.  
  5. mobi:   build/TheSourceOfFire.mobi
  6.  
  7. clean:
  8.     rm build/*.png build/*.xhtml
  9.  
  10. build/TheSourceOfFire.mobi:  build/TheSourceOfFire.xhtml
  11.     ebook-convert build/TheSourceOfFire.xhtml build/TheSourceOfFire.mobi --cover build/cover.jpg --authors "Pete Alex Harris" --language English
  12.  
  13. build/TheSourceOfFire.epub:  build/fixed-TheSourceOfFire.xhtml
  14.     ebook-convert build/fixed-TheSourceOfFire.xhtml build/TheSourceOfFire.epub --cover build/cover.jpg --authors "Pete Alex Harris" --language English
  15.     epubcheck build/TheSourceOfFire.epub
  16.  
  17. POVSVG=$(wildcard illustrations/pov-*.svg)
  18. POVPNG=$(patsubst illustrations/%.svg, build/%.png, $(POVSVG))
  19. MAPSVG=$(wildcard illustrations/*-map.svg)
  20. MAPPNG=$(patsubst illustrations/%.svg, build/%.png, $(MAPSVG))
  21.  
  22. build/%.png: illustrations/%.svg
  23.     inkscape -e $@ -d 300 $<
  24.  
  25. build/TheSourceOfFire.xhtml: $(wildcard *.lyx) $(MAPPNG) $(POVPNG)
  26.     lyx -E xhtml build/TheSourceOfFire.xhtml TheSourceOfFire.lyx
  27.  
  28. build/fixed-TheSourceOfFire.xhtml: build/TheSourceOfFire.xhtml
  29.     cd build; fixnesting --prefix='fixed-' TheSourceOfFire.xhtml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement