-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (56 loc) · 1.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
REBAR = ./rebar
VERSION = $(shell ./tag)
RM_RF = rm -rf
RM_F = rm -f
MKDIR_P = mkdir -p
CP_R = cp -r
.PHONY: compile get-deps
all: build
build: compile
@$(REBAR) escriptize
release: build
ifeq ($(VERSION),ERROR)
@echo "**> Can't find version!"
else
@echo "==> Release version $(VERSION)"
git clone [email protected]:emedia-project/paris.app.wiki.git
cp paris paris.app.wiki/paris
cd paris.app.wiki; git commit -am "New release $(VERSION)"; git push origin master
rm -rf paris.app.wiki
git commit -am "Release version $(VERSION)"
git tag $(VERSION)
git push origin master --tags
endif
compile: get-deps
@$(REBAR) compile
get-deps:
@$(REBAR) get-deps
@$(REBAR) check-deps
clean:
@$(REBAR) clean
rm -f erl_crash.dump
realclean: clean
@$(REBAR) delete-deps
test: get-deps
@$(REBAR) skip_deps=true eunit
doc:
@mkdir doc
@cp _doc/* doc
$(REBAR) skip_deps=true doc
dev:
@erl -pa ebin include apps/*/ebin apps/*/include deps/*/ebin deps/*/include #-config sys.config
analyze: checkplt
@$(REBAR) skip_deps=true dialyze
buildplt:
@$(REBAR) skip_deps=true build-plt
checkplt: buildplt
@$(REBAR) skip_deps=true check-plt
cleaninstall: installclean install
installclean:
@$(RM_RF) ~/.paris
@$(RM_F) ~/.rebar/templates/paris*
install: build
@$(MKDIR_P) ~/.paris/plugins
@$(MKDIR_P) ~/.rebar/templates
@$(CP_R) rebar_templates/* ~/.rebar/templates
@$(CP_R) plugins/* ~/.paris/plugins