aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client/Makefile16
-rw-r--r--server/Makefile16
2 files changed, 32 insertions, 0 deletions
diff --git a/client/Makefile b/client/Makefile
new file mode 100644
index 0000000..f447307
--- /dev/null
+++ b/client/Makefile
@@ -0,0 +1,16 @@
+SRC=$(wildcard *.erl)
+BIN=$(SRC:.erl=.beam)
+
+.PHONY: all clean
+
+#######################
+
+all: $(BIN)
+
+%.beam: %.erl
+ erlc $<
+
+#######################
+
+clean:
+ -$(RM) $(BIN)
diff --git a/server/Makefile b/server/Makefile
new file mode 100644
index 0000000..f447307
--- /dev/null
+++ b/server/Makefile
@@ -0,0 +1,16 @@
+SRC=$(wildcard *.erl)
+BIN=$(SRC:.erl=.beam)
+
+.PHONY: all clean
+
+#######################
+
+all: $(BIN)
+
+%.beam: %.erl
+ erlc $<
+
+#######################
+
+clean:
+ -$(RM) $(BIN)