-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 1.07 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
ERLANG_PROJECT=aeserialization
.PHONY: $(ERLANG_PROJECT) transpile enacl test clean libs
transpile: $(ERLANG_PROJECT) libs
./erlscripten -p $(ERLANG_PROJECT) -o . --omit aeserialization/_build/default/lib/enacl/ --skip-tests # -S "10:base58:b58char" -S "10:base58:charb58" -S "5:aeserialization:decode_field" -S "10:aeser_chain_objects:tag" -S "10:aeser_chain_objects:rev_tag" -S "10:aeser_api_encoder:type2enc" -S "5:aeser_api_encoder:type2pfx" -S "4:aeser_api_encoder:pfx2type"
spago build
test: $(ERLANG_PROJECT) libs
./erlscripten -p $(ERLANG_PROJECT) -o . --omit aeserialization/_build/default/lib/enacl/ # -S "10:base58:b58char" -S "10:base58:charb58" -S "5:aeserialization:decode_field" -S "10:aeser_chain_objects:tag" -S "10:aeser_chain_objects:rev_tag" -S "10:aeser_api_encoder:type2enc" -S "5:aeser_api_encoder:type2pfx" -S "4:aeser_api_encoder:pfx2type"
spago test
$(ERLANG_PROJECT):
cd $(ERLANG_PROJECT); ../rebar3 compile; ../rebar3 eunit
libs:
ln enacl/* src/ -f
clean:
rm src/* -f
rm test/Aeser* -f
nuke:
rm src/* -f
rm test/Aeser* -f
rm output -rf
rm .spago -rf