aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: c309692e1d03e33892ce1e940259a3759c9eb7fc (plain) (tree)






















                                                        
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 $@) $<