Permalink
Browse files

First commit

  • Loading branch information...
0 parents commit 8ddc4ce7e4991ec64944b2693aa099a46e7e2eac @brendonh committed Sep 16, 2009
Showing with 40 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +34 −0 Makefile
  3. +1 −0 README
@@ -0,0 +1,5 @@
+*~
+*.pyc
+Mnesia.*
+sasl_err*
+erl_crash*
@@ -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) $<
1 README
@@ -0,0 +1 @@
+Erlang OpenID client (and maybe server, sometime)

0 comments on commit 8ddc4ce

Please sign in to comment.