summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7e34b060432a9f5802145fe85b085b8934991f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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) *~