Rephrased a few sentences
[gitmagic.git] / Makefile
blobd0eb6e0cfbacbc090a67ab11251f790496b9126b
1 .PHONY: target clean sync
3 target: book
5 TXTFILES=intro.txt basic.txt clone.txt branch.txt grandmaster.txt secrets.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 book/default.css
11 xmlto -m custom-html.xsl -o book html book.xml
12 sed -i 's/xmlns:fo[^ ]*//' book/*.html
13 -ls book/*.html | xargs -n 1 tidy -utf8 -m -i -q
14 ./makeover
16 book/default.css: book.css
17 -mkdir book
18 rsync book.css book/default.css
20 book.html: book.xml
21 xmlto -m custom-nochunks.xsl html-nochunks $^
22 -tidy -utf8 -imq $@
24 book.pdf: book.xml
25 docbook2pdf book.xml
27 clean:
28 -rm -rf book.xml book.html book
30 sync: target
31 rsync -r book/* blynn@tl1.stanford.edu:www/gitmagic/