forked from TroupeLang/Troupe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (36 loc) · 847 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
.PHONY: rt
COMPILER=./bin/troupec
# run the make of the compiler itself
stack:
$(MAKE) -C compiler
yarn:
yarn install
rt:
cd rt; tsc
libs:
$(COMPILER) ./lib/lists.trp -l
$(COMPILER) ./lib/declassifyutil.trp -l
$(COMPILER) ./lib/stdio.trp -l
$(COMPILER) ./lib/timeout.trp -l
test:
cd compiler && $(MAKE) test
dist: stack yarn rt libs
rm -rf ./build/
mkdir -p ./build/Troupe/rt/built
mkdir -p ./build/Troupe/bin
cp -RP bin ./build/Troupe
cp -RL lib ./build/Troupe/
cp -RL trustmap.json ./build/Troupe/trustmap.json
cp -RL node_modules ./build/Troupe/node_modules
# yarn run rollup --config
cp -RL rt/built ./build/Troupe/rt/
cp local.sh ./build/Troupe/bin/runtrp_local
cp network.sh ./build/Troupe/bin/runtrp
cp -RL tests ./build/Troupe/
all:
make stack
yarn
make rt
make libs
clear-built-rt:
rm -rf rt/built