Skip to content

Commit 504b5c8

Browse files
committed
using EBIN
1 parent 387c028 commit 504b5c8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ MODULES = \
66
uart_SUITE
77

88

9-
EBIN = .
9+
EBIN = ../ebin
1010
ERLC = erlc
1111

1212
ERLDIR := $(shell erl -noshell -eval "io:format([126,115,126,110],[code:root_dir()])" -s erlang halt)
1313

14-
override ERLC_FLAGS = -Wall -I ../include
14+
override ERLC_FLAGS = -MMD -MP -MF .$<.d -Wall -I ../include
1515

1616
debug: ERLC_FLAGS += +debug_info -Ddebug
1717

@@ -21,14 +21,10 @@ all: $(OBJS)
2121

2222
debug: all
2323

24-
depend:
25-
edep -MM -o ../ebin $(ERLC_FLAGS) $(MODULES:%=%.erl) > depend.mk
26-
2724
clean:
2825
rm -f $(OBJS)
2926

30-
3127
-include depend.mk
3228

33-
./%.beam: %.erl
34-
erlc -o ../ebin $(ERLC_FLAGS) $<
29+
$(EBIN)/%.beam: %.erl
30+
erlc -o $(EBIN) $(ERLC_FLAGS) $<

0 commit comments

Comments
 (0)