Horrors2/Makefile

47 lines
866 B
Makefile
Raw Normal View History

# Pages per signature
SIGSIZE = 24
2009-07-14 16:49:13 -06:00
SUPPORT = chapauth.sty praise.tex
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
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-11-18 20:45:24 -07:00
horrors2.mdwn: horrors2.ltx $(STORIES)
./toxhtml.py > $@
horrors2.xhtml: horrors2.mdwn head.xhtml foot.xhtml
markdown $< >> $@
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
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/*