Added two chapters
[gitmagic/dustin.git] / Makefile
blob70223a3ad7ffb77f78fe366074492bf9b3b95ec9
1 .PHONY: target clean sync
3 target: book
5 TXTFILES=intro.txt basic.txt clone.txt branch.txt
7 book.xml: $(TXTFILES)
8 cat $^ | sed 's/<tt>/<command>/g' | sed 's/<\/tt>/<\/command>/g' | ./bookmake > book.xml
10 book: book.xml book.css preface.html
11 xmlto -m custom-html.xsl -o book html book.xml
12 -ls book/*.html | xargs -n 1 tidy -utf8 -m -i -q
13 ./makeover
14 rsync book.css book/default.css
16 book.html: book.xml
17 xmlto -m custom-nochunks.xsl html-nochunks $^
18 -tidy -utf8 -imq $@
20 book.pdf: book.xml
21 docbook2pdf book.xml
23 clean:
24 -rm -rf book.xml book.html book
26 sync: target
27 rsync -r book/* blynn@tl1.stanford.edu:www/gitmagic/