Described git add -p, mentioned git branch -d, -m.
[gitmagic/gitmagic.git] / Makefile
blob7b6114d425175d42737da848acdcfcca93c2b30f
1 .PHONY: target clean sync push
3 target: book book/default.css book.html book.pdf
5 TXTFILES=preface.txt intro.txt basic.txt clone.txt branch.txt grandmaster.txt secrets.txt drawbacks.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 sync: target
31 rsync -r book.html book.pdf book/* blynn@tl1.stanford.edu:www/gitmagic/
33 public:
34 git push blynn@git.or.cz:srv/git/gitmagic.git
35 git push git@github.com:blynn/gitmagic.git