blob: 4b9fc1b0320109e0e2f19b7642ab8836d08dcb8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
CLIENT-SRC=$(wildcard client/*.erl)
CLIENT-BIN=$(CLIENT-SRC:.erl=.beam)
SERVER-SRC=$(wildcard server/*.erl)
SERVER-BIN=$(SERVER-SRC:.erl=.beam)
COMMON-SRC=$(wildcard common/*.erl)
COMMON-BIN=$(COMMON-SRC:.erl=.beam)
.PHONY: all client server clean clean-client clean-server
all: client server
clean: clean-client clean-server
clean-client: clean-common
-$(RM) $(CLIENT-BIN)
clean-server: clean-common
-$(RM) $(SERVER-BIN)
clean-common:
-$(RM) $(COMMON-BIN)
client: $(CLIENT-BIN) $(COMMON-BIN)
server: $(SERVER-BIN) $(COMMON-BIN)
%.beam: %.erl
erlc -o $(dir $@) $<
|