From 0196ed8c6112d1695493e3fe8e16f4c25e838fff Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 13 Oct 2010 23:16:09 +0200 Subject: new global makefile make targets: client server all = client and server clean --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c309692 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 $@) $< -- cgit v1.2.3