Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (63 sloc) 1.417 kB
# Instructions for pushing:
# make gh-pages
# git push
PDFLATEX = pdflatex -halt-on-error -file-line-error
PDF2SVG = pdf2svg
PDF2PNG = convert -density 88
FILES := \
basic-usage \
basic-usage-2 \
checkout-after-detached \
checkout-b-detached \
checkout-branch \
checkout-detached \
checkout-files \
cherry-pick \
commit-amend \
commit-detached \
commit-maint \
commit-master \
conventions \
diff \
merge \
merge-ff \
rebase \
rebase-onto \
reset \
reset-commit \
reset-files
HTML := \
index-de.html \
index-en.html \
index-es.html \
index-fr.html \
index-it.html \
index-ja.html \
index-ko.html \
index-pt.html \
index-ru.html \
index-sk.html \
index-vi.html \
index-zh-cn.html \
index-zh-tw.html \
translate-en.html
PDF_OUT = $(FILES:=.pdf)
PNG_OUT = $(PDF_OUT:.pdf=.svg.png)
SVG_OUT = $(PDF_OUT:.pdf=.svg)
CRUFT = $(FILES:=.aux) $(FILES:=.log)
EXTRA := index.html visual-git-guide.css visual-git-guide.js
all : pdf png svg
pdf : $(PDF_OUT)
png : $(PNG_OUT)
svg : $(SVG_OUT)
gh-pages : all
./publish $(PDF_OUT) $(PNG_OUT) $(SVG_OUT) $(HTML) $(EXTRA)
%.pdf : %.tex common.tex
$(PDFLATEX) $<
%.svg : %.pdf
$(PDF2SVG) $^ $@
%.svg.png : %.pdf
$(PDF2PNG) $^ $@
clean :
$(RM) $(PDF_OUT) $(PNG_OUT) $(SVG_OUT) $(CRUFT)
.PHONY : clean all pdf png svg gh-pages
Jump to Line
Something went wrong with that request. Please try again.