forked from brendonh/erl_openid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of http://github.com/OJ/erl_openid
- Loading branch information
Showing
8 changed files
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
SRC_DIR = src | ||
EBIN_DIR = ebin | ||
INCLUDE_DIR = include | ||
ERL ?= erl | ||
APP := openid | ||
|
||
SOURCES = $(wildcard $(SRC_DIR)/*.erl) | ||
INCLUDES = $(wildcard $(INCLUDE_DIR)/*.hrl) | ||
TARGETS = $(patsubst $(SRC_DIR)/%.erl, $(EBIN_DIR)/%.beam,$(SOURCES)) | ||
.PHONY: deps | ||
.PHONY: test | ||
.PHONY: mod | ||
|
||
ERL_EBINS = -pa $(EBIN_DIR) | ||
all: deps | ||
@./rebar compile | ||
|
||
ERLC = erlc | ||
ERLC_OPTS = -o $(EBIN_DIR) -Wall -v +debug_info | ||
deps: | ||
@./rebar get-deps | ||
|
||
ERL_CMD=erl \ | ||
+W w \ | ||
$(ERL_EBINS) | ||
clean: | ||
@./rebar clean | ||
|
||
all: $(TARGETS) | ||
mod: | ||
@./rebar create-mod app=$(APP) modid=$(MOD) | ||
|
||
run_prereqs: all | ||
test: | ||
@./rebar eunit app=$(APP) | ||
|
||
test: run_prereqs | ||
$(ERL_CMD) -noshell -pa ../mochiweb/ebin -s openid_srv test -s init stop | ||
distclean: clean | ||
@./rebar delete-deps | ||
|
||
clean: cleanlog | ||
rm -f $(TARGETS) | ||
rm -f $(EBIN_DIR)/*.beam | ||
|
||
cleanlog: | ||
rm -f auth.log report.log sasl_err.log | ||
rm -f *.access | ||
|
||
$(EBIN_DIR)/%.beam: $(SRC_DIR)/%.erl $(INCLUDES) | ||
$(ERLC) $(ERLC_OPTS) $< | ||
docs: | ||
@erl -noshell -run edoc_run application '$(APP)' '"."' '[]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{application, | ||
openid, | ||
[{description, "OpenID 2.0 implementation"}, | ||
{vsn, "0.0.1"}, | ||
{modules, | ||
[ | ||
openid, | ||
openid_utils, | ||
openid_srv, | ||
yadis | ||
]}, | ||
{registered,[]}, | ||
{applications,[kernel, stdlib]}, | ||
{env,[]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ | |
%%% Created : 18 Sep 2009 by Brendon Hogger <[email protected]> | ||
%%%------------------------------------------------------------------- | ||
|
||
-define(GV(E, P), proplists:get_value(E, P)). | ||
-define(GVD(E, P, D), proplists:get_value(E, P, D)). | ||
-define(DBG(Term), io:format("~p: ~p~n", [self(), Term])). | ||
|
||
-record(xrdService, { | ||
types, | ||
uris, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters