PageRenderTime 183ms CodeModel.GetById 114ms app.highlight 3ms RepoModel.GetById 64ms app.codeStats 1ms

/src/Makefile

http://github.com/basho/mochiweb
Makefile | 33 lines | 24 code | 9 blank | 0 comment | 0 complexity | 19335ccbe3fbd4337d51823720586f6e MD5 | raw file
 1include ../support/include.mk
 2
 3APPLICATION=mochiweb
 4DOC_OPTS={dir,\"../doc\"}
 5TEST_PLT=$(TEST_DIR)/dialyzer_plt
 6
 7all: $(EBIN_FILES)
 8
 9debug:
10	$(MAKE) DEBUG=-DDEBUG
11
12clean:
13	rm -rf $(EBIN_FILES)
14
15edoc:
16	$(ERL) -noshell -pa ../ebin \
17		-eval "edoc:application($(APPLICATION), \".\", [$(DOC_OPTS)])" \
18		-s init stop
19
20test: $(EBIN_FILES)
21	mkdir -p $(TEST_DIR);
22	@../support/run_tests.escript $(EBIN_DIR) | tee $(TEST_DIR)/test.log
23
24$(TEST_PLT):
25	mkdir -p $(TEST_DIR)
26	cp $(DIALYZER_PLT) $(TEST_PLT)
27	dialyzer --plt $(TEST_PLT) --add_to_plt
28
29clean_plt:
30	rm $(TEST_PLT)
31
32dialyzer: $(TEST_PLT)
33	dialyzer --src --plt $(TEST_PLT) -DNOTEST -DDIALYZER -c ../src | tee $(TEST_DIR)/dialyzer.log