aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c309692e1d03e33892ce1e940259a3759c9eb7fc (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
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

all: client server

clean:
	-$(RM) $(CLIENT-BIN) $(SERVER-BIN) $(COMMON-BIN)

client: $(CLIENT-BIN) $(COMMON-BIN)

server: $(SERVER-BIN) $(COMMON-BIN)

%.beam: %.erl
	erlc -o $(dir $@) $<