forked from drfloob/ezic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (35 loc) · 989 Bytes
/
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
ERLC_WARNINGS := -W1
MNESIA_DIR := db
RUN_INIT := -boot start_sasl ##-run ezic_db init
DEBUG := -DNODEBUG -Ddebug
TEST :=
TZSET := northamerica
SHELL := /bin/bash
COMPILE := ./src/*.erl
all : clean compile
nowarn : ERLC_WARNINGS = -W0
nowarn : clean compile
test : ERLC_WARNINGS := -W0
test : TEST := -DTEST
test : RUN_INIT += -run test all -s erlang halt
test : COMPILE += ./test/*.erl
test : all run
compile :
erlc $(DEBUG) $(TEST) $(ERLC_WARNINGS) $(OPTIONS) -o ./ebin $(COMPILE)
-erl -noshell -pa ebin -s erldev make_app . -s erlang halt
clean :
-@rm ebin/*
-@rm erl_crash.dump
run :
## erl -pa ebin -mnesia dir $(MNESIA_DIR) $(RUN_INIT)
erl -pa ebin $(RUN_INIT)
devstart : RUN_INIT += -s ezic dev -s erlang halt
devstart : all run
tzdata :
-cat priv/tzdata/$(TZSET) | sed '/\s*\#/d' | sed '/^\s*$$/d' | less -S
diff :
-git diff > /tmp/ezic.tmp.diff
emacs /tmp/ezic.tmp.diff
debug : DEBUG += +debug_info
##debug : RUN_INIT += -s ezic dev
debug : all run