aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile14
-rw-r--r--client/Makefile6
-rw-r--r--server/Makefile5
3 files changed, 22 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c309692..4b9fc1b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,20 @@ COMMON-SRC=$(wildcard common/*.erl)
COMMON-BIN=$(COMMON-SRC:.erl=.beam)
-.PHONY: all client server clean
+.PHONY: all client server clean clean-client clean-server
all: client server
-clean:
- -$(RM) $(CLIENT-BIN) $(SERVER-BIN) $(COMMON-BIN)
+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)
diff --git a/client/Makefile b/client/Makefile
new file mode 100644
index 0000000..17cc9a0
--- /dev/null
+++ b/client/Makefile
@@ -0,0 +1,6 @@
+all:
+ -$(MAKE) -C.. client
+
+clean:
+ -$(MAKE) -C.. clean-client
+
diff --git a/server/Makefile b/server/Makefile
new file mode 100644
index 0000000..a1c185b
--- /dev/null
+++ b/server/Makefile
@@ -0,0 +1,5 @@
+all:
+ -$(MAKE) -C.. server
+
+clean:
+ -$(MAKE) -C.. clean-server