瀏覽代碼

Update rebar and the Makefile

* Update rebar to a more recent version
  * Update rebar.config for deprecation warnings
  * Allow people to export the REBAR environment variable to use
    their own version of rebar
  * Fixed `make clean`
pull/29/head 0.4.3
Benoit Chesneau 13 年之前
committed by Paul J. Davis
父節點
當前提交
6f589d4576
共有 3 個文件被更改,包括 11 次插入11 次删除
  1. +10
    -10
      Makefile
  2. 二進制
      rebar
  3. +1
    -1
      rebar.config

+ 10
- 10
Makefile 查看文件

@ -1,24 +1,24 @@
REBAR?=./rebar
all: build all: build
clean: clean:
./rebar clean
$(REBAR) clean
rm -rf logs rm -rf logs
rm -rf .eunit rm -rf .eunit
rm test/*.beam
rm -f test/*.beam
depends: depends:
@if test ! -d ./deps; then \ @if test ! -d ./deps; then \
./rebar get-deps; \
$(REBAR) get-deps; \
else \ else \
./rebar update-deps; \
$(REBAR) update-deps; \
fi fi
build:
@if test ! -d ./deps; then \
./rebar get-deps; \
fi
./rebar compile
build: depends
$(REBAR) compile
etap: test/etap.beam test/util.beam etap: test/etap.beam test/util.beam
@ -26,7 +26,7 @@ etap: test/etap.beam test/util.beam
eunit: eunit:
./rebar eunit skip_deps=true
$(REBAR) eunit skip_deps=true
check: build etap eunit check: build etap eunit

二進制
rebar 查看文件


+ 1
- 1
rebar.config 查看文件

@ -4,7 +4,7 @@
{port_specs, [{"priv/jiffy.so", ["c_src/*.c"]}]}. {port_specs, [{"priv/jiffy.so", ["c_src/*.c"]}]}.
{port_envs, [
{port_env, [
%% Link the spidermonkey library %% Link the spidermonkey library
{".*", "CFLAGS", "$CFLAGS -g -Wall"}, {".*", "CFLAGS", "$CFLAGS -g -Wall"},

Loading…
取消
儲存