aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 4b9fc1b0320109e0e2f19b7642ab8836d08dcb8e (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                   
                                                         


                  









                                 






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