Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (22 sloc) 0.574 kB
265aacb @ostinelli optimized error handling [issue track #5, thanks to Max Lapshin]
ostinelli authored
1 EBIN_DIR := ebin
2 SRC_DIR := src
3 EXAMPLES_DIR := examples
4 INCLUDE_DIR := include
5 ERLC := erlc
6 ERLC_FLAGS := -W -I $(INCLUDE_DIR) -o $(EBIN_DIR)
7
8 all:
9 @mkdir -p $(EBIN_DIR)
10 $(ERLC) $(ERLC_FLAGS) $(SRC_DIR)/*.erl
11 @cp $(SRC_DIR)/*.app $(EBIN_DIR)/
12
13 clean:
14 @rm -rf $(EBIN_DIR)/*
15 @rm -f erl_crash.dump
16
17 debug:
18 @mkdir -p $(EBIN_DIR)
19 $(ERLC) -D log_debug $(ERLC_FLAGS) $(SRC_DIR)/*.erl
20 @cp $(SRC_DIR)/*.app $(EBIN_DIR)/
21
22 example:
23 @mkdir -p $(EBIN_DIR)
24 $(ERLC) $(ERLC_FLAGS) $(SRC_DIR)/*.erl
25 @cp $(SRC_DIR)/*.app $(EBIN_DIR)/
26 $(ERLC) $(ERLC_FLAGS) $(EXAMPLES_DIR)/*.erl
Something went wrong with that request. Please try again.