forked from nitrogen/NitrogenProject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·38 lines (28 loc) · 864 Bytes
/
Makefile
File metadata and controls
executable file
·38 lines (28 loc) · 864 Bytes
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
all: get-deps compile copy-static
get-deps:
./rebar get-deps
update-deps:
./rebar update-deps
compile:
./rebar compile
copy-static:
(cd static; rm -rf nitrogen; mkdir nitrogen; cp -r ../deps/nitrogen_core/www/* nitrogen)
(cd static; rm -rf doc; mkdir doc; cp -r ../deps/nitrogen_core/doc/html/* doc)
clean:
./rebar clean
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib sasl
$(DEPS_PLT):
@echo Building local plt at $(DEPS_PLT)
@echo
@(dialyzer --output_plt $(DEPS_PLT) --build_plt --apps $(DEPS) -r ./deps/)
dialyzer: get-deps compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)
travis: dialyzer
run:
erl -pa ebin ./deps/*/ebin ./deps/*/include \
-config "app.config" \
-name nitrogen@127.0.0.1 \
-env ERL_FULLSWEEP_AFTER 0 \
-eval "inets:start()" \
-eval "application:start(nitrogen_website)."