-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (33 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.Phony: all
all: pages
site/js/codemirror.js: node_modules/codemirror/lib/codemirror.js
cp $< $@
site/js/pyret.js: node_modules/pyret-codemirror-mode/mode/pyret.js
cp $< $@
site/js/runmode.js: node_modules/codemirror/addon/runmode/runmode.js
cp $< $@
docs/horizon:
git clone --branch horizon https://github.com/brownplt/pyret-docs horizon-docs
cd horizon-docs; npm install; make
mkdir -p site/docs/
cp -r horizon-docs/build/docs site/docs/horizon
docs/latest:
git clone --branch master https://github.com/brownplt/pyret-docs latest-docs
cd latest-docs; npm install; make
mkdir -p site/docs/
cp -r latest-docs/build/docs site/docs/latest
site/docs/index.html:
mkdir -p site/docs/
cp src/docs-redirect.html site/docs/index.html
CM_JS = site/js/codemirror.js site/js/pyret.js site/js/runmode.js
.Phony: pages
pages: $(CM_JS)
raco frog -b
.Phony: pages-and-docs
pages-and-docs: pages docs/horizon docs/latest site/docs/index.html
.Phony: serve
serve:
raco frog -s
.Phony: clean
clean:
raco frog --clean