This repository was archived by the owner on Dec 21, 2022. It is now read-only.
forked from SIfoxDevTeam/eavro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.28 KB
/
Makefile
File metadata and controls
47 lines (33 loc) · 1.28 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
43
44
45
46
47
PROJECT = eavro
REBAR = $(shell which rebar 2>/dev/null || echo $(PWD)/rebar)
LIBS = ERL_LIBS=deps:../
DIALYZER = dialyzer
APACHE_DOWNLOAD_SITE = http://apache-mirror.rbc.ru/pub/apache/avro/avro-1.7.7/java
.PHONY: jtest test deps avro_tools
compile:
@$(REBAR) compile
deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
jtest:
(cd jtest && mvn compile assembly:single)
test:
@$(REBAR) xref eunit skip_deps=true
run: compile
@$(LIBS) erl -pa ebin
run_srv: compile
@$(LIBS) erl -s eavro_rpc_srv
avro_tools:
@[ -d avro_tools ] || mkdir avro_tools
(cd avro_tools && wget $(APACHE_DOWNLOAD_SITE)/avro-tools-1.7.7.jar && wget $(APACHE_DOWNLOAD_SITE)/avro-1.7.7.jar)
generate_avro_data: avro_tools
java -jar avro_tools/avro-tools-1.7.7.jar fromjson test/data/transformers.json --schema-file test/data/transformer.avsc > test/data/transformers.avro
generate_avro_data_deflate: avro_tools
java -jar avro_tools/avro-tools-1.7.7.jar fromjson test/data/transformers.json --codec deflate --schema-file test/data/transformer.avsc > test/data/transformers-deflated.avro
build-plt:
@$(DIALYZER) --build_plt --output_plt $(PROJECT).plt \
--apps erts kernel stdlib compiler crypto
dialyze:
@$(DIALYZER) --src src --plt $(PROJECT).plt \
-Werror_handling -Wrace_conditions -Wunmatched_returns