2009-07-27 23:11:15 -06:00
|
|
|
# Pages per signature
|
|
|
|
SIGSIZE = 24
|
|
|
|
|
2009-07-14 16:49:13 -06:00
|
|
|
SUPPORT = chapauth.sty praise.tex
|
2009-07-09 20:44:07 -06:00
|
|
|
STORIES = stories/*.tex
|
2009-07-13 23:22:44 -06:00
|
|
|
ART = art/*
|
2009-07-09 01:03:38 -06:00
|
|
|
|
2009-11-18 20:45:24 -07:00
|
|
|
all: pdf epub
|
|
|
|
pdf: horrors2-book.pdf
|
|
|
|
epub: book.epub
|
|
|
|
|
2009-07-27 23:11:15 -06:00
|
|
|
horrors2-book.pdf: horrors2-book.ps
|
|
|
|
ps2pdf $< $@
|
|
|
|
|
|
|
|
horrors2-book.ps: horrors2.ps
|
|
|
|
pstops -p letter "$(shell ./enbook $(SIGSIZE))" $< > $@
|
|
|
|
|
|
|
|
horrors2.ps: horrors2.pdf
|
|
|
|
pdftops $<
|
|
|
|
|
2009-07-13 23:22:44 -06:00
|
|
|
horrors2.pdf: horrors2.ltx $(SUPPORT) $(STORIES) $(ART)
|
2009-07-09 01:03:38 -06:00
|
|
|
pdflatex $<
|
|
|
|
pdflatex $<
|
2009-07-09 11:01:21 -06:00
|
|
|
|
2009-11-18 20:45:24 -07:00
|
|
|
horrors2.mdwn: horrors2.ltx $(STORIES)
|
|
|
|
./toxhtml.py > $@
|
|
|
|
|
|
|
|
horrors2.xhtml: horrors2.mdwn head.xhtml foot.xhtml
|
|
|
|
markdown $< >> $@
|
2009-11-18 22:38:27 -07:00
|
|
|
|
|
|
|
book.xhtml: horrors2.xhtml
|
|
|
|
cat head.xhtml > $@
|
|
|
|
cat $< >> $@
|
2009-11-18 20:45:24 -07:00
|
|
|
cat foot.xhtml >> $@
|
|
|
|
|
|
|
|
book.epub: horrors2.xhtml
|
|
|
|
./mkepub
|
|
|
|
|
|
|
|
|
2009-07-09 14:45:49 -06:00
|
|
|
publish: horrors2.pdf
|
|
|
|
cp horrors2.pdf horrors2.$(shell TZ=UTC date "+%Y-%m-%dT%H:%M:%SZ").pdf
|
|
|
|
|
2009-07-09 11:01:21 -06:00
|
|
|
clean:
|
|
|
|
rm -f *aux *dvi *log
|
2009-11-18 20:45:24 -07:00
|
|
|
rm -f horrors2.xhtml horrors2.mdwn book.epub
|
|
|
|
rm -f epub/art/*
|