annotate en/Makefile @ 670:3bcc001ce34f

Get rid of lots of TeX-era cruft.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 09 Mar 2009 23:37:19 -0700
parents 27043f385f3f
children bebd5ff7fe7f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
e6f4088ebe52 Generate a PDF file with a feedback link on each paragraph.
Bryan O'Sullivan <bos@serpentine.com>
parents: 16
diff changeset
1 # This makefile requires GNU make.
e6f4088ebe52 Generate a PDF file with a feedback link on each paragraph.
Bryan O'Sullivan <bos@serpentine.com>
parents: 16
diff changeset
2
11
e9d5b4c3d16b First SVG image!
Bryan O'Sullivan <bos@serpentine.com>
parents: 7
diff changeset
3 image-sources := \
179
5fc4a45c069f Continue documentation of collaboration models.
Bryan O'Sullivan <bos@serpentine.com>
parents: 177
diff changeset
4 feature-branches.dot \
108
e0b961975c5e First bit of concepts chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents: 104
diff changeset
5 filelog.svg \
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
6 kdiff3.png \
109
1b67dc96f27a Snapshot of concepts chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents: 108
diff changeset
7 metadata.svg \
96
7d7ddc3a57af Split tour into two chapters.
Bryan O'Sullivan <bos@serpentine.com>
parents: 95
diff changeset
8 mq-stack.svg \
149
16f02802f448 Start to produce saner HTML and CSS.
Bryan O'Sullivan <bos@serpentine.com>
parents: 146
diff changeset
9 note.png \
112
2fcead053b7a More. Concept. Fun.
Bryan O'Sullivan <bos@serpentine.com>
parents: 110
diff changeset
10 revlog.svg \
110
75c076c7a374 More concepts stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents: 109
diff changeset
11 snapshot.svg \
99
06383f9e46e4 More graphics.
Bryan O'Sullivan <bos@serpentine.com>
parents: 96
diff changeset
12 tour-history.svg \
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
13 tour-merge-conflict.svg \
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
14 tour-merge-merge.svg \
100
272146fab009 Add yet another illustration of the merge process.
Bryan O'Sullivan <bos@serpentine.com>
parents: 99
diff changeset
15 tour-merge-pull.svg \
113
a0f57b3e677e More concepts, this time working directory stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents: 112
diff changeset
16 tour-merge-sep-repos.svg \
124
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
17 undo-manual.dot \
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
18 undo-manual-merge.dot \
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
19 undo-non-tip.dot \
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
20 undo-simple.dot \
113
a0f57b3e677e More concepts, this time working directory stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents: 112
diff changeset
21 wdir.svg \
115
b74102b56df5 Wow! Lots more work detailing the working directory, merging, etc.
Bryan O'Sullivan <bos@serpentine.com>
parents: 113
diff changeset
22 wdir-after-commit.svg \
b74102b56df5 Wow! Lots more work detailing the working directory, merging, etc.
Bryan O'Sullivan <bos@serpentine.com>
parents: 113
diff changeset
23 wdir-branch.svg \
b74102b56df5 Wow! Lots more work detailing the working directory, merging, etc.
Bryan O'Sullivan <bos@serpentine.com>
parents: 113
diff changeset
24 wdir-merge.svg \
b74102b56df5 Wow! Lots more work detailing the working directory, merging, etc.
Bryan O'Sullivan <bos@serpentine.com>
parents: 113
diff changeset
25 wdir-pre-branch.svg
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
26
657
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
27 xml-src-files := \
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
28 00book.xml \
658
b90b024729f1 WIP DocBook snapshot that all compiles. Mirabile dictu!
Bryan O'Sullivan <bos@serpentine.com>
parents: 657
diff changeset
29 app*.xml \
b90b024729f1 WIP DocBook snapshot that all compiles. Mirabile dictu!
Bryan O'Sullivan <bos@serpentine.com>
parents: 657
diff changeset
30 ch*.xml
657
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
31
124
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
32 image-dot := $(filter %.dot,$(image-sources))
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
33 image-svg := $(filter %.svg,$(image-sources))
124
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
34 image-png := $(filter %.png,$(image-sources))
11
e9d5b4c3d16b First SVG image!
Bryan O'Sullivan <bos@serpentine.com>
parents: 7
diff changeset
35
213
18cffee85038 Fix build of HTML pages with PNG images.
Bryan O'Sullivan <bos@serpentine.com>
parents: 202
diff changeset
36 image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png)
18cffee85038 Fix build of HTML pages with PNG images.
Bryan O'Sullivan <bos@serpentine.com>
parents: 202
diff changeset
37
4
33a2e7b9978d Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents: 2
diff changeset
38 example-sources := \
124
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
39 backout \
131
153efeaa8f57 Fix stupid build bugs.
Bryan O'Sullivan <bos@serpentine.com>
parents: 124
diff changeset
40 bisect \
179
5fc4a45c069f Continue documentation of collaboration models.
Bryan O'Sullivan <bos@serpentine.com>
parents: 177
diff changeset
41 branching \
202
6f167e644762 Start writing about named branches.
Bryan O'Sullivan <bos@serpentine.com>
parents: 198
diff changeset
42 branch-named \
198
615f3c6b30e1 Start to describe branch management.
Bryan O'Sullivan <bos@serpentine.com>
parents: 196
diff changeset
43 branch-repo \
133
1e013fbe35f7 Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents: 132
diff changeset
44 cmdref \
117
6b0f4498569e Beef up daily routine material. Focus on merge-across-copy.
Bryan O'Sullivan <bos@serpentine.com>
parents: 115
diff changeset
45 daily.copy \
86
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
46 daily.files \
118
1ee53cb37a99 More progress on daily work.
Bryan O'Sullivan <bos@serpentine.com>
parents: 117
diff changeset
47 daily.rename \
122
3af28630fe8c How to goodbye depression by reverting one thousand times daily.
Bryan O'Sullivan <bos@serpentine.com>
parents: 121
diff changeset
48 daily.revert \
226
eef2171243e8 Document the extdiff extension.
Bryan O'Sullivan <bos@serpentine.com>
parents: 223
diff changeset
49 extdiff \
133
1e013fbe35f7 Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents: 132
diff changeset
50 filenames \
86
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
51 hook.msglen \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
52 hook.simple \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
53 hook.ws \
156
91a936be78b8 Document merge behaviour with file names.
Bryan O'Sullivan <bos@serpentine.com>
parents: 153
diff changeset
54 issue29 \
104
32bf9a5f22c0 Refactor MQ chapter into three.
Bryan O'Sullivan <bos@serpentine.com>
parents: 103
diff changeset
55 mq.guards \
86
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
56 mq.qinit-help \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
57 mq.dodiff \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
58 mq.id \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
59 mq.tarball \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
60 mq.tools \
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
61 mq.tutorial \
156
91a936be78b8 Document merge behaviour with file names.
Bryan O'Sullivan <bos@serpentine.com>
parents: 153
diff changeset
62 rename.divergent \
121
9094c9fda8ec Start chapter on error recovery.
Bryan O'Sullivan <bos@serpentine.com>
parents: 118
diff changeset
63 rollback \
196
4237e45506ee Add early material describing tags.
Bryan O'Sullivan <bos@serpentine.com>
parents: 195
diff changeset
64 tag \
86
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
65 template.simple \
87
0995016342f8 More bumf.
Bryan O'Sullivan <bos@serpentine.com>
parents: 86
diff changeset
66 template.svnstyle \
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
67 tour \
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents: 100
diff changeset
68 tour-merge-conflict
4
33a2e7b9978d Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents: 2
diff changeset
69
657
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
70 xsltproc := xsltproc
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
71 xsltproc-opts := --nonet --xinclude --path '$(xml-path)'
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
72
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
73 xmllint := xmllint
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
74 xmllint-opts := --noout --nonet --valid
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
75
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
76 system-xsl-dir := $(firstword $(wildcard \
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
77 /usr/share/sgml/docbook/xsl-stylesheets \
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
78 /usr/share/xml/docbook/stylesheet/nwalsh \
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
79 ))
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
80
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
81 # Bletcherousness.
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
82
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
83 ifneq ($(wildcard /usr/share/sgml/docbook/xml-dtd-4.4-*),)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
84 dtd-dir := $(wildcard /usr/share/sgml/docbook/xml-dtd-4.4-*)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
85 else
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
86 ifneq ($(wildcard /usr/share/xml/docbook/schema/dtd/4.4),)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
87 dtd-dir := $(wildcard /usr/share/xml/docbook/schema/dtd/4.4)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
88 else
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
89 $(error Do not know where to look for DocBook XML 4.4 DTD)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
90 endif
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
91 endif
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
92
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
93 ifeq ($(system-xsl-dir),)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
94 $(error add a suitable directory to system-xsl-dir)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
95 endif
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
96
172
5f305adeb584 Try to tighten up the run environment to make things more reproducible.
Bryan O'Sullivan <bos@serpentine.com>
parents: 171
diff changeset
97 example-prereqs := \
5f305adeb584 Try to tighten up the run environment to make things more reproducible.
Bryan O'Sullivan <bos@serpentine.com>
parents: 171
diff changeset
98 /usr/bin/merge
5f305adeb584 Try to tighten up the run environment to make things more reproducible.
Bryan O'Sullivan <bos@serpentine.com>
parents: 171
diff changeset
99
157
e49f4451d0e3 Add hgbook front page material.
Bryan O'Sullivan <bos@serpentine.com>
parents: 156
diff changeset
100 dist-sources := \
159
7355af913937 First steps on collaboration chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents: 157
diff changeset
101 ../html/hgicon.png \
157
e49f4451d0e3 Add hgbook front page material.
Bryan O'Sullivan <bos@serpentine.com>
parents: 156
diff changeset
102 ../html/index.html.var \
e49f4451d0e3 Add hgbook front page material.
Bryan O'Sullivan <bos@serpentine.com>
parents: 156
diff changeset
103 ../html/index.en.html
e49f4451d0e3 Add hgbook front page material.
Bryan O'Sullivan <bos@serpentine.com>
parents: 156
diff changeset
104
177
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
105 hg = $(shell which hg)
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
106
269
abfe426f7e08 Kill off the hideous pink text from HTML.
Bryan O'Sullivan <bos@serpentine.com>
parents: 250
diff changeset
107 hg-id = $(shell hg parents --template '{node|short}, dated {date|isodate},\n')
177
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
108
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
109 hg-version = $(shell hg version -q | \
242
0d536cb488f2 Allow revs with uncommitted changes.
Bryan O'Sullivan <bos@serpentine.com>
parents: 226
diff changeset
110 sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,')
177
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
111
670
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
112 all: html
149
16f02802f448 Start to produce saner HTML and CSS.
Bryan O'Sullivan <bos@serpentine.com>
parents: 146
diff changeset
113
657
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
114 ../xsl/system-xsl: $(system-xsl-dir)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
115 ln -s $< $@
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
116
670
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
117 html: ../xsl/system-xsl $(xml-src-files) valid
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
118 xsltproc $(xsltproc-opts) -o html/x ../xsl/chunk-stylesheet.xsl 00book.xml
657
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
119
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
120 valid: .validated-00book.xml
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
121
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
122 .validated-00book.xml: $(xml-src-files)
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
123 $(xmllint) --path '$(dtd-dir):$(xml-path)' $(xmllint-opts) $<
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
124 touch $@
8631da51309b Slow progress on XML conversion
Bryan O'Sullivan <bos@serpentine.com>
parents: 649
diff changeset
125
18
e6f4088ebe52 Generate a PDF file with a feedback link on each paragraph.
Bryan O'Sullivan <bos@serpentine.com>
parents: 16
diff changeset
126 # Produce 90dpi PNGs for the web.
e6f4088ebe52 Generate a PDF file with a feedback link on each paragraph.
Bryan O'Sullivan <bos@serpentine.com>
parents: 16
diff changeset
127
408
028543f67bea Fix build
Bryan O'Sullivan <bos@serpentine.com>
parents: 406
diff changeset
128 %.png: %.svg fixsvg
406
fb5c0d56d7f1 Fix test 'tour'.
Guido Ostkamp <hg@ostkamp.fastmail.fm>
parents: 278
diff changeset
129 ./fixsvg $<
408
028543f67bea Fix build
Bryan O'Sullivan <bos@serpentine.com>
parents: 406
diff changeset
130 inkscape -D -e $@ $<-tmp.svg
028543f67bea Fix build
Bryan O'Sullivan <bos@serpentine.com>
parents: 406
diff changeset
131 rm $<-tmp.svg
0
76fba5835a1b Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
132
124
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
133 %.svg: %.dot
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
134 dot -Tsvg -o $@ $<
c9aad709bd3a Document the backout command.
Bryan O'Sullivan <bos@serpentine.com>
parents: 122
diff changeset
135
172
5f305adeb584 Try to tighten up the run environment to make things more reproducible.
Bryan O'Sullivan <bos@serpentine.com>
parents: 171
diff changeset
136 examples: $(example-prereqs) examples/.run
4
33a2e7b9978d Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents: 2
diff changeset
137
86
796738d75876 Reduce verbosity.
Bryan O'Sullivan <bos@serpentine.com>
parents: 85
diff changeset
138 examples/.run: $(example-sources:%=examples/%.run)
45
6b7b0339e7d6 Don't rerun examples unnecessarily.
Bryan O'Sullivan <bos@serpentine.com>
parents: 44
diff changeset
139 touch examples/.run
6b7b0339e7d6 Don't rerun examples unnecessarily.
Bryan O'Sullivan <bos@serpentine.com>
parents: 44
diff changeset
140
6b7b0339e7d6 Don't rerun examples unnecessarily.
Bryan O'Sullivan <bos@serpentine.com>
parents: 44
diff changeset
141 examples/%.run: examples/% examples/run-example
6b7b0339e7d6 Don't rerun examples unnecessarily.
Bryan O'Sullivan <bos@serpentine.com>
parents: 44
diff changeset
142 cd examples && ./run-example $(notdir $<)
4
33a2e7b9978d Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents: 2
diff changeset
143
670
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
144 clean:
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
145 -rm -rf dist html $(image-dot:%.dot=%.pdf) $(image-dot:%.dot=%.png) \
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
146 $(image-svg:%.svg=%.png) examples/*.{lxo,run} examples/.run
177
c54f4c106fd5 Record the version of Mercurial used.
Bryan O'Sullivan <bos@serpentine.com>
parents: 172
diff changeset
147
670
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
148 install: html $(dist-sources)
153
cf24633b8de7 Set up simple distribution rules.
Bryan O'Sullivan <bos@serpentine.com>
parents: 149
diff changeset
149 rm -rf dist
cf24633b8de7 Set up simple distribution rules.
Bryan O'Sullivan <bos@serpentine.com>
parents: 149
diff changeset
150 mkdir -p dist
670
3bcc001ce34f Get rid of lots of TeX-era cruft.
Bryan O'Sullivan <bos@serpentine.com>
parents: 665
diff changeset
151 cp html/*.{css,html,png} dist
157
e49f4451d0e3 Add hgbook front page material.
Bryan O'Sullivan <bos@serpentine.com>
parents: 156
diff changeset
152 cp $(dist-sources) dist
153
cf24633b8de7 Set up simple distribution rules.
Bryan O'Sullivan <bos@serpentine.com>
parents: 149
diff changeset
153
cf24633b8de7 Set up simple distribution rules.
Bryan O'Sullivan <bos@serpentine.com>
parents: 149
diff changeset
154 rsync: install
cf24633b8de7 Set up simple distribution rules.
Bryan O'Sullivan <bos@serpentine.com>
parents: 149
diff changeset
155 rsync -avz --delete dist sp.red-bean.com:public_html/hgbook