@@ -4,7 +4,7 @@ CHAPTERS := 00_intro 01_values 02_program_structure 03_functions 04_data 05_high
44
55SVGS := $(wildcard img/* .svg)
66
7- html : $(foreach CHAP,$(CHAPTERS ) ,html/$(CHAP ) .html) html/js/chapter_info.js \
7+ html : $(foreach CHAP,$(CHAPTERS ) ,html/$(CHAP ) .html) html/js/chapter_info.js html/js/acorn_codemirror.js \
88 code/skillsharing.zip code/solutions/20_4_a_public_space_on_the_web.zip \
99 $(patsubst img/%.svg,img/generated/%.png,$(SVGS))
1010
@@ -15,6 +15,16 @@ html/%.html: %.txt asciidoc_html.conf
1515html/js/chapter_info.js : $(foreach CHAP,$(CHAPTERS ) ,$(CHAP ) .txt) code/solutions/* bin/chapter_info.js
1616 node bin/chapter_info.js > html/js/chapter_info.js
1717
18+ html/js/acorn_codemirror.js : node_modules/codemirror/lib/codemirror.js \
19+ node_modules/codemirror/mode/javascript/javascript.js \
20+ node_modules/codemirror/mode/css/css.js \
21+ node_modules/codemirror/mode/xml/xml.js \
22+ node_modules/codemirror/mode/htmlmixed/htmlmixed.js \
23+ node_modules/codemirror/addon/edit/matchbrackets.js \
24+ node_modules/acorn/acorn.js \
25+ node_modules/acorn/util/walk.js
26+ node_modules/.bin/uglifyjs $? -m -o $@
27+
1828img/generated/% .png : img/% .svg
1929 inkscape --export-png=$@ $<
2030
0 commit comments