Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (22 sloc) 0.643 kb
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
EBIN_DIR := ebin
SRC_DIR := src
EXAMPLES_DIR := examples
INCLUDE_DIR := include
ERLC := erlc
ERLC_FLAGS := -W -I $(INCLUDE_DIR) -o $(EBIN_DIR)

all:
@mkdir -p $(EBIN_DIR)
$(ERLC) $(ERLC_FLAGS) $(SRC_DIR)/*.erl
@cp $(SRC_DIR)/misultin.app.src $(EBIN_DIR)/misultin.app

clean:
@rm -rf $(EBIN_DIR)/*
@rm -f erl_crash.dump

debug:
@mkdir -p $(EBIN_DIR)
$(ERLC) -D log_debug $(ERLC_FLAGS) $(SRC_DIR)/*.erl
@cp $(SRC_DIR)/misultin.app.src $(EBIN_DIR)/misultin.app

example:
@mkdir -p $(EBIN_DIR)
$(ERLC) $(ERLC_FLAGS) $(SRC_DIR)/*.erl
@cp $(SRC_DIR)/misultin.app.src $(EBIN_DIR)/misultin.app
$(ERLC) $(ERLC_FLAGS) $(EXAMPLES_DIR)/*.erl
Something went wrong with that request. Please try again.