summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7e34b06
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+
+EUNITPATH=/home/ssmith/software/eunit-1.1
+
+ERLC=erlc
+ERLFLAGS=-I$(EUNITPATH)/inc
+
+SRC=bencode.erl tests.erl
+BEAM=$(SRC:.erl=.beam)
+
+all: $(BEAM)
+
+%.beam : %.erl
+ $(ERLC) $(ERLFLAGS) $<
+
+test: $(BEAM)
+ erl -noshell -pa $(EUNITPATH)/ebin -s tests -s init stop
+
+clean:
+ rm -f $(BEAM) *~