added naive Makefile, stubs of modules, unit test coordinator (test_master)

This commit is contained in:
aj
2010-11-03 00:30:59 -07:00
parent 992a7d8e1a
commit 59f18e4270
4 changed files with 84 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
ERLC_WARNINGS = -W1
MNESIA_DIR = db
RUN_INIT = -s ezic start
all : clean compile
nowarn : ERLC_WARNINGS = -W0
nowarn : clean compile
test : ERLC_WARNINGS = -W0
test : OPTIONS := $(OPTIONS) -DTEST
test : all
erlc $(ERLC_WARNINGS) $(OPTIONS) -o ./ebin ./tests/*.erl
erl -noshell -pa ebin -s test_master start -s erlang halt
compile :
erlc $(ERLC_WARNINGS) $(OPTIONS) -o ./ebin ./src/*.erl
-erl -noshell -pa ebin -s erldev make_app . -s erlang halt
clean :
-@rm ebin/*
run :
erl -pa ebin -mnesia dir $(MNESIA_DIR) $(RUN_INIT)