PageRenderTime 163ms CodeModel.GetById 90ms app.highlight 2ms RepoModel.GetById 68ms app.codeStats 1ms

/priv/skel/src/Makefile

http://github.com/basho/mochiweb
Makefile | 33 lines | 24 code | 9 blank | 0 comment | 0 complexity | 35cfc93c91ad82f204773f74d60595e6 MD5 | raw file
 1include ../support/include.mk
 2
 3APPLICATION=skel
 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 -r ../deps/*/ebin
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