PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/Makefile

http://github.com/skarab/ewgi
Makefile | 32 lines | 23 code | 9 blank | 0 comment | 0 complexity | e5878a39d09205109713290001224ebb MD5 | raw file
 1VSN		:= 0.2
 2ERL		?= erl
 3EBIN_DIRS	:= $(wildcard lib/*/ebin)
 4APP		:= ewgi
 5
 6all: erl ebin/$(APP).app
 7
 8erl: ebin lib
 9	@./support/compile.erl ebin src/$(APP).app $(EBIN_DIRS)
10
11docs:
12	@erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
13
14clean:
15	@echo "removing:"
16	@rm -fv ebin/*.beam ebin/*.app
17
18ebin/$(APP).app: src/$(APP).app Makefile
19	@./support/gen_app_file.erl src/$(APP).app $@ $(VSN)
20
21ebin:
22	@mkdir ebin
23
24lib:
25	@mkdir lib
26
27dialyzer: erl
28	@dialyzer -c ebin
29
30test: erl
31	@$(ERL) -pa $(EBIN_DIRS) -pa ebin -noinput +B \
32	-eval 'case lists:member(error, ewgi_test:test()) of true -> halt(1); _ -> halt(0) end.'