Skip to content

Commit

Permalink
Merge pull request #22 from uwiger/uw-otp24
Browse files Browse the repository at this point in the history
Fix compilation under OTP 24, delete rebar2
  • Loading branch information
uwiger committed May 17, 2021
2 parents dd3d082 + a081fba commit 4504acc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
.project
.settings/
.eunit/
_build/
ebin/
*~
*/*~
Expand Down
6 changes: 4 additions & 2 deletions Makefile
@@ -1,12 +1,14 @@
REBAR3=$(shell which rebar3 || echo ./rebar3)

.PHONY: all compile clean doc

all: compile

compile:
./rebar compile
$(REBAR3) compile

clean:
./rebar clean
$(REBAR3) clean

doc: compile
./make_doc
Binary file removed rebar
Binary file not shown.
1 change: 1 addition & 0 deletions rebar.lock
@@ -0,0 +1 @@
[].
Binary file added rebar3
Binary file not shown.
3 changes: 3 additions & 0 deletions src/edoc_compat.hrl
Expand Up @@ -4,6 +4,9 @@
-ifndef(NO_APP).
%% OTP 24+ EDoc
-define(NO_APP, no_app).
-endif.

-if(?OTP_RELEASE >= 24).
-define(context, doclet_context).
-else.
%% Pre OTP 24 EDoc
Expand Down

0 comments on commit 4504acc

Please sign in to comment.