Modernized command invocations a bit.
[gitmagic/dustin.git] / Makefile
blob23efbab1831a59c21f5b2aef8b1c8453e7ce6e4c
1 .PHONY: target clean sync push
3 target: book book/default.css
5 TXTFILES=preface.txt intro.txt basic.txt clone.txt branch.txt grandmaster.txt secrets.txt
7 book.xml: $(TXTFILES)
8 ( for FILE in $^ ; do cat $$FILE ; echo ; done ) | asciidoc -d book -b docbook - > $@
10 book: book.xml
11 xmlto -m custom-html.xsl -o book html book.xml
12 sed -i 's/xmlns:fo[^ ]*//g' 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 push:
31 git-push blynn@git.or.cz:srv/git/gitmagic.git
33 sync: target
34 rsync -r book/* blynn@tl1.stanford.edu:www/gitmagic/