summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssmith2006-05-17 21:31:51 -0700
committerssmith2006-05-17 21:31:51 -0700
commit215e20b99d80f49315b6c3bb8d6d26cbac820691 (patch)
treee40bc9aca5b6776e5a5bc2b481b5876014a1ac1d
parent03e1da1bb5c5f2cf0ad6daaca6c90a7164c02726 (diff)
Largly unnecessary separation of test and code building.
-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) *~