Improved Makefile for Windows

This commit is contained in:
Alexey Romanov
2010-12-22 16:38:21 +03:00
parent e0dabec964
commit 38299010b5
4 changed files with 45 additions and 54 deletions

30
GNUmakefile Normal file
View File

@@ -0,0 +1,30 @@
REBAR=./rebar
REBAR_COMPILE=$(REBAR) get-deps compile
PLT=dialyzer/sqlite3.plt
all: compile
compile:
$(REBAR_COMPILE)
test:
$(REBAR_COMPILE) eunit
clean:
-rm -rf deps ebin priv doc/* .eunit c_src/*.o
docs:
$(REBAR_COMPILE) doc
static:
$(REBAR_COMPILE)
ifeq ($(wildcard $(PLT)),)
dialyzer --build_plt --apps kernel stdlib erts --output_plt $(PLT)
else
dialyzer --plt $(PLT) -r ebin
endif
cross_compile: clean
$(REBAR_COMPILE) -C rebar.cross_compile.config
.PHONY: all compile test clean docs static