forked from sampsyo/bril
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (39 loc) · 862 Bytes
/
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
45
TESTS := test/parse/*.bril \
test/print/*.json \
test/interp*/*.bril \
test/ts*/*.ts \
test/mem/*.bril \
test/fail/*.bril \
test/check/*.bril \
examples/test/*/*.bril \
benchmarks/*.bril
CHECKS := test/parse/*.bril \
test/interp/*.bril \
test/mem/*.bril \
examples/test/*/*.bril \
benchmarks/*.bril
.PHONY: test
test:
turnt $(TURNTARGS) $(TESTS)
.PHONY: check
check:
for fn in $(CHECKS) ; do \
bril2json -p < $$fn | brilck $$fn || failed=1 ; \
done ; \
exit $$failed
.PHONY: book
book:
rm -rf book
mdbook build
.PHONY: ts
ts:
cd bril-ts ; \
yarn ; \
yarn build
.PHONY: deploy
RSYNCARGS := --compress --recursive --checksum --itemize-changes \
--delete -e ssh --perms --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r \
--exclude=.DS_Store
DEST := courses:coursewww/capra.cs.cornell.edu/htdocs/bril
deploy: book
rsync $(RSYNCARGS) ./book/ $(DEST)