-
Notifications
You must be signed in to change notification settings - Fork 179
/
Makefile
52 lines (40 loc) · 1.22 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
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
REBAR=`which rebar || printf ./rebar`
REPO=protobuffs
all: get-deps compile build
get-deps:
@$(REBAR) get-deps
compile:
@$(REBAR) compile
build: compile
@$(REBAR) escriptize
ct:
./scripts/generate_emakefile.escript
@$(REBAR) skip_deps=true ct
eunit:
@$(REBAR) skip_deps=true eunit
test: compile eunit ct
clean:
@$(REBAR) clean
release: compile
ifeq ($(VERSION),)
$(error VERSION must be set to build a release and deploy this package)
endif
ifeq ($(RELEASE_GPG_KEYNAME),)
$(error RELEASE_GPG_KEYNAME must be set to build a release and deploy this package)
endif
@echo "==> Tagging version $(VERSION)"
@bash ./build/publish $(VERSION) validate
@git tag --sign -a "$(VERSION)" -m "erlang_protobuffs $(VERSION)" --local-user "$(RELEASE_GPG_KEYNAME)"
@git push --tags
@bash ./build/publish $(VERSION)
APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
COMBO_PLT = $(HOME)/.$(REPO)_combo_dialyzer_plt
check_plt: compile
dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS) \
ebin
build_plt: compile
dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS) \
ebin
dialyzer: compile
dialyzer -Wno_return --plt $(COMBO_PLT) ebin