From 5879ed65e33a9e0a78b6970b816d8a3fcbe530ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Fri, 15 Nov 2019 10:07:29 +0100 Subject: [PATCH] Separate makefile to client/sever stuff --- Makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a23a4cb..506ee9e 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,21 @@ -SUB_DIRS=bash i3 packages ssh vim docker +SERVER_PARTS=bash ssh vim docker +CLIENT_PARTS=i3 packages .PHONY: clean_install -install: - @$(foreach dir,$(SUB_DIRS), $(MAKE) install -C $(dir);) - -clean: - @$(foreach dir,$(SUB_DIRS), $(MAKE) clean -C $(dir);) - +install: install_server install_client +clean: clean_server clean_client clean_install: clean install + +install_server: + @$(foreach dir,$(SERVER_PARTS), $(MAKE) install -C $(dir);) + +install_client: + @$(foreach dir,$(CLIENT_PARTS), $(MAKE) install -C $(dir);) + +clean_server: + @$(foreach dir,$(SERVER_PARTS), $(MAKE) clean -C $(dir);) + +clean_client: + @$(foreach dir,$(CLIENT_PARTS), $(MAKE) clean -C $(dir);) +