Improved Makefile for Windows
This commit is contained in:
29
Makefile
29
Makefile
@@ -1,30 +1,29 @@
|
||||
REBAR=./rebar
|
||||
REBAR=rebar
|
||||
REBAR_COMPILE=$(REBAR) get-deps compile
|
||||
PLT=dialyzer/sqlite3.plt
|
||||
PLT=dialyzer\sqlite3.plt
|
||||
ERL_INTERFACE=$(ERL_ROOT)\lib\erl_interface-3.7.2
|
||||
ERTS=$(ERL_ROOT)\erts-5.8.2
|
||||
SQLITE_SRC=F:\MyProgramming\sqlite-amalgamation
|
||||
|
||||
all: compile
|
||||
|
||||
compile:
|
||||
compile:
|
||||
$(REBAR_COMPILE)
|
||||
|
||||
test:
|
||||
$(REBAR_COMPILE) eunit
|
||||
tests:
|
||||
$(REBAR) eunit
|
||||
|
||||
clean:
|
||||
-rm -rf deps ebin priv doc/* .eunit c_src/*.o
|
||||
-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
|
||||
static: compile
|
||||
@if not exist $(PLT) \
|
||||
(mkdir dialyzer & dialyzer --build_plt --apps kernel stdlib erts --output_plt $(PLT)); \
|
||||
else \
|
||||
(dialyzer --plt $(PLT) -r ebin)
|
||||
|
||||
cross_compile: clean
|
||||
$(REBAR_COMPILE) -C rebar.cross_compile.config
|
||||
|
||||
.PHONY: all compile test clean docs static
|
||||
|
||||
Reference in New Issue
Block a user