Mercurial > hgbook
annotate es/Makefile @ 613:db12ab3b3b25
corrected some typos on the title page.
translated a couple of index entries
author | Javier Rojas <jerojasro@devnull.li> |
---|---|
date | Sun, 18 Jan 2009 19:45:33 -0500 |
parents | 9412f706651e |
children |
rev | line source |
---|---|
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
1 # This makefile requires GNU make. |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
2 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
3 sources := \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
4 00book.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
5 99book.bib \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
6 99defs.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
7 build_id.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
8 branch.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
9 cmdref.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
10 collab.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
11 concepts.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
12 daily.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
13 filenames.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
14 hg_id.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
15 hgext.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
16 hook.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
17 intro.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
18 mq.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
19 mq-collab.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
20 mq-ref.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
21 preface.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
22 srcinstall.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
23 template.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
24 tour-basic.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
25 tour-merge.tex \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
26 undo.tex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
27 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
28 image-sources := \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
29 feature-branches.dot \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
30 filelog.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
31 kdiff3.png \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
32 metadata.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
33 mq-stack.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
34 note.png \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
35 revlog.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
36 snapshot.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
37 tour-history.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
38 tour-merge-conflict.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
39 tour-merge-merge.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
40 tour-merge-pull.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
41 tour-merge-sep-repos.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
42 undo-manual.dot \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
43 undo-manual-merge.dot \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
44 undo-non-tip.dot \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
45 undo-simple.dot \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
46 wdir.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
47 wdir-after-commit.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
48 wdir-branch.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
49 wdir-merge.svg \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
50 wdir-pre-branch.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
51 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
52 image-dot := $(filter %.dot,$(image-sources)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
53 image-svg := $(filter %.svg,$(image-sources)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
54 image-png := $(filter %.png,$(image-sources)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
55 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
56 image-pdf := $(image-dot:%.dot=%.pdf) $(image-svg:%.svg=%.pdf) $(image-png) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
57 image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
58 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
59 example-sources := \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
60 backout \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
61 bisect \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
62 branching \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
63 branch-named \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
64 branch-repo \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
65 cmdref \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
66 daily.copy \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
67 daily.files \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
68 daily.rename \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
69 daily.revert \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
70 extdiff \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
71 filenames \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
72 hook.msglen \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
73 hook.simple \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
74 hook.ws \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
75 issue29 \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
76 mq.guards \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
77 mq.qinit-help \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
78 mq.dodiff \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
79 mq.id \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
80 mq.tarball \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
81 mq.tools \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
82 mq.tutorial \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
83 rename.divergent \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
84 rollback \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
85 tag \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
86 template.simple \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
87 template.svnstyle \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
88 tour \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
89 tour-merge-conflict |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
90 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
91 example-prereqs := \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
92 /usr/bin/merge |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
93 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
94 dist-sources := \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
95 ../html/hgicon.png \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
96 ../html/index.html.var \ |
605
bd0c83293048
Added main presentation page
Igor Támara <igor@tamarapatino.org>
parents:
422
diff
changeset
|
97 ../html/index.en.html \ |
bd0c83293048
Added main presentation page
Igor Támara <igor@tamarapatino.org>
parents:
422
diff
changeset
|
98 ../html/index.es.html |
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
99 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
100 latex-options = \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
101 -interaction batchmode \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
102 -output-directory $(dir $(1)) \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
103 -jobname $(basename $(notdir $(1))) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
104 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
105 hg = $(shell which hg) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
106 |
613
db12ab3b3b25
corrected some typos on the title page.
Javier Rojas <jerojasro@devnull.li>
parents:
611
diff
changeset
|
107 hg-id = $(shell hg parents --template '{node|short}, fechado {date|isodate},\n') |
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
108 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
109 hg-version = $(shell hg version -q | \ |
613
db12ab3b3b25
corrected some typos on the title page.
Javier Rojas <jerojasro@devnull.li>
parents:
611
diff
changeset
|
110 sed 's,.*(versión \(unknown\|[a-f0-9+]*\)),\1,') |
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
111 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
112 all: pdf html |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
113 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
114 pdf: pdf/hgbook.pdf |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
115 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
116 define pdf |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
117 mkdir -p $(dir $@) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
118 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
119 cp 99book.bib $(dir $@) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
120 cd $(dir $@) && bibtex $(basename $(notdir $@)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
121 cd $(dir $@) && makeindex $(basename $(notdir $@)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
122 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
123 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
124 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
125 endef |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
126 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
127 pdf/hgbook.pdf: $(sources) examples $(image-pdf) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
128 $(call pdf) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
129 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
130 html: onepage split |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
131 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
132 onepage: $(htlatex) html/onepage/hgbook.html html/onepage/hgbook.css $(image-html:%=html/onepage/%) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
133 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
134 html/onepage/%: % |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
135 cp $< $@ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
136 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
137 split: $(htlatex) html/split/hgbook.html html/split/hgbook.css $(image-html:%=html/split/%) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
138 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
139 html/split/%: % |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
140 cp $< $@ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
141 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
142 # This is a horrible hack to work around the fact that the htlatex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
143 # command in tex4ht is itself a horrible hack. I really don't want to |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
144 # include verbatim the big wad of TeX that is repeated in that script, |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
145 # but I've given up and run a hacked copy as htlatex.book here. |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
146 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
147 define htlatex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
148 mkdir -p $(dir $(1)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
149 cp 99book.bib $(dir $(1)) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
150 TEXINPUTS=$(dir $(2)): ./htlatex.book $(2) "bookhtml,html4-uni,$(3)" " -cunihtf -utf8" "$(dir $(1))" "$(call latex-options,$(1))" || (rm -f $(1); exit 1) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
151 cd $(dir $(1)) && tex4ht -f/$(basename $(notdir $(1))) -cvalidate -cunihtf |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
152 cd $(dir $(1)) && t4ht -f/$(basename $(notdir $(1))) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
153 ./fixhtml.py $(dir $(1))/*.html |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
154 rm $(dir $(1))/hgbook.css |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
155 endef |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
156 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
157 html/onepage/hgbook.html: $(sources) examples $(image-html) bookhtml.cfg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
158 $(call htlatex,$@,$<) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
159 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
160 html/split/hgbook.html: $(sources) examples bookhtml.cfg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
161 $(call htlatex,$@,$<,2) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
162 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
163 # Produce 90dpi PNGs for the web. |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
164 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
165 %.png: %.svg fixsvg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
166 ./fixsvg $< |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
167 inkscape -D -e $@ $<-tmp.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
168 rm $<-tmp.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
169 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
170 %.svg: %.dot |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
171 dot -Tsvg -o $@ $< |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
172 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
173 # Produce eps & pdf for the pdf |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
174 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
175 %.pdf: %.eps |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
176 epstopdf $< |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
177 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
178 %.eps: %.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
179 ./fixsvg $< |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
180 inkscape -E $@ $<-tmp.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
181 rm $<-tmp.svg |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
182 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
183 %.eps: %.dot |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
184 dot -Tps -o $@ $< |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
185 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
186 examples: $(example-prereqs) examples/.run |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
187 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
188 examples/.run: $(example-sources:%=examples/%.run) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
189 touch examples/.run |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
190 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
191 examples/%.run: examples/% examples/run-example |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
192 cd examples && ./run-example $(notdir $<) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
193 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
194 changelog := $(wildcard ../.hg/store/00changelog.[id]) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
195 ifeq ($(changelog),) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
196 changelog := $(wildcard ../.hg/00changelog.[id]) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
197 endif |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
198 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
199 build_id.tex: $(changelog) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
200 echo -n '$(hg-id)' > build_id.tex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
201 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
202 hg_id.tex: $(hg) |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
203 echo -n '$(hg-version)' > hg_id.tex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
204 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
205 clean: |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
206 rm -rf dist html pdf \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
207 $(image-dot:%.dot=%.pdf) \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
208 $(image-dot:%.dot=%.png) \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
209 $(image-svg:%.svg=%.pdf) \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
210 $(image-svg:%.svg=%.png) \ |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
211 examples/*.{lxo,run} examples/.run build_id.tex hg_id.tex |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
212 |
611 | 213 install: pdf split $(dist-sources) |
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
214 rm -rf dist |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
215 mkdir -p dist |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
216 cp pdf/hgbook.pdf dist |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
217 cp html/split/*.{css,html,png} dist |
611 | 218 cp html/onepage/hgbook.html dist/onepage.html |
219 ln -s index.es.html dist/index.html | |
422
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
220 cp $(dist-sources) dist |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
221 |
701cc7f8aee3
Initial guidelines for translation
Igor TAmara <igor@tamarapatino.org>
parents:
diff
changeset
|
222 rsync: install |
611 | 223 rsync -avz --delete dist/ ikks@sulaco.devnull.li:public_html/hgbook/ |