File: Makefile

package info (click to toggle)
erlang-p1-pkix 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 580 kB
  • sloc: erlang: 1,476; makefile: 46; sh: 10
file content (64 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download | duplicates (4)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
REBAR=./rebar

all: src

src:
	$(REBAR) get-deps compile

clean:
	$(REBAR) clean

distclean: clean
	rm -rf deps
	rm -rf ebin
	rm -rf dialyzer

test: all
	$(REBAR) -v skip_deps=true eunit

xref: all
	$(REBAR) skip_deps=true xref

deps := $(wildcard deps/*/ebin)

APPS=kernel stdlib erts public_key crypto asn1

dialyzer/erlang.plt:
	@mkdir -p dialyzer
	@dialyzer --build_plt --output_plt dialyzer/erlang.plt \
	-o dialyzer/erlang.log --apps $(APPS); \
	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

# dialyzer/deps.plt:
# 	@mkdir -p dialyzer
# 	@dialyzer --build_plt --output_plt dialyzer/deps.plt \
# 	-o dialyzer/deps.log $(deps); \
# 	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

dialyzer/pkix.plt:
	@mkdir -p dialyzer
	@dialyzer --build_plt --output_plt dialyzer/pkix.plt \
	-o dialyzer/pkix.log ebin; \
	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

erlang_plt: dialyzer/erlang.plt
	@dialyzer --plt dialyzer/erlang.plt --check_plt -o dialyzer/erlang.log; \
	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

# deps_plt: dialyzer/deps.plt
# 	@dialyzer --plt dialyzer/deps.plt --check_plt -o dialyzer/deps.log; \
# 	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

pkix_plt: dialyzer/pkix.plt
	@dialyzer --plt dialyzer/pkix.plt --check_plt -o dialyzer/pkix.log; \
	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

dialyzer: erlang_plt pkix_plt #deps_plt pkix_plt
	@dialyzer --plts dialyzer/*.plt --no_check_plt \
	--get_warnings -o dialyzer/error.log ebin; \
	status=$$? ; if [ $$status -ne 2 ]; then exit $$status; else exit 0; fi

check-syntax:
	gcc -o nul -S ${CHK_SOURCES}

.PHONY: clean src test all dialyzer erlang_plt pkix_plt #deps_plt