From 215e20b99d80f49315b6c3bb8d6d26cbac820691 Mon Sep 17 00:00:00 2001 From: ssmith Date: Wed, 17 May 2006 21:31:51 -0700 Subject: Largly unnecessary separation of test and code building. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) *~ -- cgit v1.2.3