cruft
·
2009-11-18
Makefile
1# Pages per signature
2SIGSIZE = 24
3
4SUPPORT = chapauth.sty praise.tex
5STORIES = stories/*.tex
6ART = art/*
7
8all: pdf epub
9pdf: horrors2-book.pdf
10epub: book.epub
11
12horrors2-book.pdf: horrors2-book.ps
13 ps2pdf $< $@
14
15horrors2-book.ps: horrors2.ps
16 pstops -p letter "$(shell ./enbook $(SIGSIZE))" $< > $@
17
18horrors2.ps: horrors2.pdf
19 pdftops $<
20
21horrors2.pdf: horrors2.ltx $(SUPPORT) $(STORIES) $(ART)
22 pdflatex $<
23 pdflatex $<
24
25horrors2.mdwn: horrors2.ltx $(STORIES)
26 ./toxhtml.py > $@
27
28horrors2.xhtml: horrors2.mdwn head.xhtml foot.xhtml
29 markdown $< >> $@
30
31book.xhtml: horrors2.xhtml
32 cat head.xhtml > $@
33 cat $< >> $@
34 cat foot.xhtml >> $@
35
36book.epub: horrors2.xhtml
37 ./mkepub
38
39
40publish: horrors2.pdf
41 cp horrors2.pdf horrors2.$(shell TZ=UTC date "+%Y-%m-%dT%H:%M:%SZ").pdf
42
43clean:
44 rm -f *aux *dvi *log
45 rm -f horrors2.xhtml horrors2.mdwn book.epub
46 rm -f epub/art/*