diff options
| author | ssmith | 2006-05-17 21:31:51 -0700 |
|---|---|---|
| committer | ssmith | 2006-05-17 21:31:51 -0700 |
| commit | 215e20b99d80f49315b6c3bb8d6d26cbac820691 (patch) | |
| tree | e40bc9aca5b6776e5a5bc2b481b5876014a1ac1d /Makefile | |
| parent | 03e1da1bb5c5f2cf0ad6daaca6c90a7164c02726 (diff) | |
Largly unnecessary separation of test and code building.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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) *~ |
