4
4
# Constants
5
5
6
6
DIR = html/
7
- SRC = sicp-pocket.texi # book's Texinfo source
8
- GOAL = ../sicp.epub # the end product of compilation
9
- NEXUS = $(DIR ) index.xhtml # the central file with table of contents
10
- META = content.opf toc.xhtml # epub metafiles generated from NEXUS
11
- HTML = $(DIR ) *.xhtml # all the HTML files of the book
12
- FIG = $(DIR ) fig/*/*.svg # SVG diagrams
13
- CSS = $(DIR ) css/*.css # style files
14
- FONT = $(DIR ) css/fonts/* # WOFF fonts
15
- JS = $(DIR ) js/*.js # javascript libraries
16
- CONV = texi2any lib/Texinfo/Convert/HTML.pm # Texinfo converter scripts
17
- MATH = get-math.js put-math.js mathcell.xhtml # LaTeX -> MathML converter
7
+ SRC = sicp-pocket.texi # book's Texinfo source
8
+ GOAL = ../sicp.epub # the end product of compilation
9
+ NEXUS = $(DIR ) index.xhtml # the central file with table of contents
10
+ META = content.opf toc.xhtml # epub metafiles generated from NEXUS
11
+ HTML = $(DIR ) *.xhtml # all the HTML files of the book
12
+ FIG = $(DIR ) fig/*/*.svg # SVG diagrams
13
+ CSS = $(DIR ) css/*.css # style files
14
+ FONT = $(DIR ) css/fonts/* # WOFF fonts
15
+ JS = $(DIR ) js/*.js # javascript libraries
16
+ CONV = texi2any lib/Texinfo/Convert/HTML.pm # Texinfo converter scripts
17
+ MATH = get-math.js put-math.js mathcell.xhtml # LaTeX -> MathML converter
18
18
HIGHL = $(DIR ) js/highlight/
19
19
PRETTY = $(HIGHL ) prettify.js $(HIGHL ) lang-lisp.js batch-prettify.js
20
20
COVER = index.in.xhtml $(DIR ) fig/coverpage.std.svg $(DIR ) fig/bookwheel.jpg
@@ -38,9 +38,9 @@ all: $(GOAL)
38
38
done; \
39
39
rm $(DIR)*.bak; \
40
40
fi; \
41
- perl -0p -i.bak -e \
42
- "s{<!-- Fork me banner -->}{$(GITHUB)}" index.xhtml; \
43
- rm *.bak
41
+ perl -0p -i.bak -e \
42
+ "s{<!-- Fork me banner -->}{$(GITHUB)}" index.xhtml; \
43
+ rm *.bak
44
44
45
45
html : $(NEXUS )
46
46
@@ -99,7 +99,7 @@ $(GOAL): $(META) $(THUMB) $(FIG) $(CSS) $(FONT) mimetype META-INF/* LICENSE
99
99
rm $(DIR ) * .bak; \
100
100
fi ; \
101
101
zip -0Xq $(GOAL ) mimetype; \
102
- cp index.in.xhtml index.xhtml; \
102
+ cp index.in.xhtml index.xhtml; \
103
103
zip -Xr9Dq $(GOAL ) $(META ) $(HTML ) META-INF/* LICENSE \
104
104
index.xhtml $(DIR ) css/* $(DIR ) fig/* ; \
105
105
echo " done."
0 commit comments