summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7e34b06..ef97278 100644
--- a/Makefile
+++ b/Makefile
@@ -4,16 +4,19 @@ EUNITPATH=/home/ssmith/software/eunit-1.1
ERLC=erlc
ERLFLAGS=-I$(EUNITPATH)/inc
-SRC=bencode.erl tests.erl
+SRC=bencode.erl
+TESTSRC=tests.erl
BEAM=$(SRC:.erl=.beam)
+TESTBEAM=$(TESTSRC:.erl=.beam)
+ALLBEAM=$(BEAM) $(TESTBEAM)
all: $(BEAM)
%.beam : %.erl
$(ERLC) $(ERLFLAGS) $<
-test: $(BEAM)
+test: $(ALLBEAM)
erl -noshell -pa $(EUNITPATH)/ebin -s tests -s init stop
clean:
- rm -f $(BEAM) *~
+ rm -f $(ALLBEAM) *~