diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2dbf312 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*~ +*.pyc +Mnesia.* +sasl_err* +erl_crash* \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..972a475 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +SRC_DIR = src +EBIN_DIR = ebin +INCLUDE_DIR = include + +SOURCES = $(wildcard $(SRC_DIR)/*.erl) +INCLUDES = $(wildcard $(INCLUDE_DIR)/*.hrl) +TARGETS = $(patsubst $(SRC_DIR)/%.erl, $(EBIN_DIR)/%.beam,$(SOURCES)) + +ERL_EBINS = -pa $(EBIN_DIR) + +ERLC = erlc +ERLC_OPTS = -o $(EBIN_DIR) -Wall -v +debug_info + +ERL_CMD=erl \ + +W w \ + $(ERL_EBINS) + +all: $(TARGETS) + +run_prereqs: all + +test: run_prereqs + $(ERL_CMD) -noshell -s audinfo test -s init stop + +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) $< diff --git a/README b/README new file mode 100644 index 0000000..346c482 --- /dev/null +++ b/README @@ -0,0 +1 @@ +Erlang OpenID client (and maybe server, sometime) \ No newline at end of file