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.
updated the makefile. fixed compiler errors. added rebar. added app f…
…ile.
- Loading branch information
OJ Reeves
committed
Aug 25, 2010
1 parent
db9e0d8
commit f7a54bf
Showing
4 changed files
with
44 additions
and
34 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