diff --git a/.gitignore b/.gitignore index e99e7df..c6bd77f 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ rel/example_project *.swp test.app.config variables-ct* +_build/ diff --git a/Makefile b/Makefile index e2ffca5..15dcfe9 100644 --- a/Makefile +++ b/Makefile @@ -1,43 +1,38 @@ -REBAR = $(shell command -v rebar || echo ./rebar) -DEPS_PLT=./.deps_plt -DEPS=erts kernel stdlib +REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3 -.PHONY: all compile test qc clean get-deps build-plt dialyze +ifeq ($(wildcard rebar3),rebar3) + REBAR3 = $(CURDIR)/rebar3 +endif -all: compile +REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3") -deps: - @$(REBAR) get-deps - @$(REBAR) compile +ifeq ($(REBAR3),) + REBAR3 = $(CURDIR)/rebar3 +endif -compile: - @$(REBAR) compile +.PHONY: deps build dialyzer xref doc publish -#test: compile -# @ERL_AFLAGS="-config test/erlquad_tests.app.config" $(REBAR) eunit skip_deps=true +all: build + +build: $(REBAR3) + @$(REBAR3) compile + +$(REBAR3): + wget $(REBAR3_URL) || curl -Lo rebar3 $(REBAR3_URL) + @chmod a+x rebar3 clean: - @$(REBAR) clean - -get-deps: - @$(REBAR) get-deps - -$(DEPS_PLT): - @echo Building $(DEPS_PLT) - dialyzer --build_plt \ - --output_plt $(DEPS_PLT) \ - --apps $(DEPS) -#-r deps \ - -dialyze: compile $(DEPS_PLT) - dialyzer --fullpath \ - --src src \ - -Wunmatched_returns \ - -Werror_handling \ - -Wrace_conditions \ - -Wunderspecs \ - -r ebin \ - --plt $(DEPS_PLT) + @$(REBAR3) clean + +dialyzer: + @$(REBAR3) dialyzer xref: - @$(REBAR) xref + @$(REBAR3) xref + +doc: build + ./scripts/hackish_inject_version_in_docs.sh + ./scripts/hackish_make_docs.sh + +publish: + @$(REBAR3) as publish hex publish diff --git a/README.md b/README.md index 150e574..2def1df 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ Copyright (c) 2016 Guilherme Andrade -__Version:__ 1.1.0 +__Version:__ 1.1.1 __Authors:__ Guilherme Andrade ([`erlquad(at)gandrade(dot)net`](mailto:erlquad(at)gandrade(dot)net)). `erlquad`: A simple Erlang quadtree implementation + --------- `erlquad` is a straightforward Erlang implementation of [quadtrees](https://en.wikipedia.org/wiki/Quadtree), supporting both bounding-box outlines as well as precise coordinates for small enough objects. @@ -63,7 +64,6 @@ erlquad:objects_all(Q2), % [#big_square{...}, #tiny_circle{...}, #tiny_circle{.. erlquad:objects_deep_all(Q2), % [[], [[#big_square{...}, [[], [], ...]], [[[], ...[]]]]] ``` - Define 'COMPILE_NATIVE_ERLQUAD' (e.g. "rebar compile -DCOMPILE_NATIVE_ERLQUAD") for HiPE compilation. diff --git a/VERSION b/VERSION deleted file mode 100644 index 9084fa2..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.1.0 diff --git a/doc/utf8/README.md b/doc/README.md similarity index 99% rename from doc/utf8/README.md rename to doc/README.md index 2754cfd..7bd00c1 100644 --- a/doc/utf8/README.md +++ b/doc/README.md @@ -4,11 +4,12 @@ Copyright (c) 2016 Guilherme Andrade -__Version:__ 1.1.0 +__Version:__ 1.1.1 __Authors:__ Guilherme Andrade ([`erlquad(at)gandrade(dot)net`](mailto:erlquad(at)gandrade(dot)net)). `erlquad`: A simple Erlang quadtree implementation + --------- `erlquad` is a straightforward Erlang implementation of [quadtrees](https://en.wikipedia.org/wiki/Quadtree), supporting both bounding-box outlines as well as precise coordinates for small enough objects. diff --git a/doc/edoc-info b/doc/edoc-info index 2c1d591..0efd98c 100644 --- a/doc/edoc-info +++ b/doc/edoc-info @@ -1,3 +1,3 @@ %% encoding: UTF-8 -{packages,[]}. +{application,erlquad}. {modules,[erlquad]}. diff --git a/doc/erlquad.html b/doc/erlquad.html index 3b2f05b..30270c6 100644 --- a/doc/erlquad.html +++ b/doc/erlquad.html @@ -24,7 +24,7 @@
erlquad_node() = #erlquad_node{}
+erlquad_node() = #erlquad_node{split_x = number(), split_y = number(), children = {erlquad_node(), erlquad_node(), erlquad_node(), erlquad_node()} | undefined, bucket = [term()]}
Generated by EDoc, Apr 23 2016, 21:57:16.
+Generated by EDoc, Apr 30 2017, 18:52:11.