-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.85 KB
/
Makefile
File metadata and controls
42 lines (30 loc) · 1.85 KB
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
ERLANG_PROJECT=aebytecode
.PHONY: $(ERLANG_PROJECT) transpile transpile_test clean libs test sed fs
transpile: $(ERLANG_PROJECT) libs
./erlscripten -p $(ERLANG_PROJECT) -o . --skip-tests --omit aebytecode/_build/default/lib/enacl --omit aebytecode/_build/default/lib/eblake2
spago build --purs-args "+RTS -I5 -w -A128M --"
transpile_test: $(ERLANG_PROJECT) libs
./erlscripten -p $(ERLANG_PROJECT) -o . --omit aebytecode/_build/default/lib/enacl --omit aebytecode/_build/default/lib/aeserialization --omit aebytecode/_build/default/lib/eblake2 --omit aebytecode/_build/default/lib/base58 # -S "10:aeb_fate_pp:format_op" -S "5:aeb_fate_asm_scan:yystate" -S "5:aeb_asm_scan:yystate" -S "5:aeb_fate_asm:to_bytecode" -S "11:aeb_opcodes:m_to_op" -S "6:aeb_fate_maps:allocate_store_maps" -S "10:aeb_fate_maps:unfold_store_maps" -S "10:aeb_fate_maps:refcount" -S "10:aeb_opcodes:opcode" -S "10:aeb_opcodes:mnemonic" -S "5:aeb_fate_encoding:serialize" -S "5:aeb_fate_encoding:serialize_type" -S "5:aeb_fate_encoding:deserialize_type" -S "5:aeb_fate_encoding:deserialize2"
fs:
mkdir -p output/File/node_modules
runhaskell gen_filesystem.hs $(ERLANG_PROJECT)/test/asm_code > output/File/node_modules/filemap.json
sed:
sed -n -f sed/lib_dir.sed test/AebytecodeSUITE.purs > /tmp/aebps
mv /tmp/aebps test/AebytecodeSUITE.purs # for some reason -i doesn't work
sed -n -f sed/ct_log.sed test/AebytecodeSUITE.purs > /tmp/aebps
mv /tmp/aebps test/AebytecodeSUITE.purs # for some reason -i doesn't work
sed -n -f sed/lib_dir.sed test/AebFateAsmTest.purs > /tmp/aebps
mv /tmp/aebps test/AebFateAsmTest.purs
spago_test:
spago test --purs-args "+RTS -I5 -w -A128M --"
test: transpile_test fs sed spago_test
$(ERLANG_PROJECT):
cd $(ERLANG_PROJECT); ../rebar3 compile; ../rebar3 eunit
libs:
ln mocks/* src/ -f
clean:
rm src/* -f
rm test/Aeb* -f
nuke: clean
rm output -rf
rm .spago -rf