From 6c47e5636efbacbde82d80187fc15ad0f0665780 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez <shernand@iri103.users.iri.prv>
Date: Fri, 15 Apr 2016 17:41:00 +0200
Subject: [PATCH] Added the creation of the lib forlder in all modules because
 git does not keep empty folders.

---
 communications/Makefile | 1 +
 controllers/Makefile    | 1 +
 dyn_devices/Makefile    | 1 +
 motion/Makefile         | 1 +
 4 files changed, 4 insertions(+)

diff --git a/communications/Makefile b/communications/Makefile
index cd714da..cd5fc84 100644
--- a/communications/Makefile
+++ b/communications/Makefile
@@ -35,6 +35,7 @@ show_banner:
 	@echo "------------------------------------------------------";
 
 $(PROJECT).a: $(OBJS)
+	mkdir -p lib
 	$(OBJCOPY) $(ARFLAGS) $(LIB_DIR)$(PROJECT).a $(OBJS)
 %.o:%.c
 	$(CC) -c $(CFLAGS) -I$(INCLUDE_DIR) -o $@ $<
diff --git a/controllers/Makefile b/controllers/Makefile
index 1c0c8bc..06de89a 100755
--- a/controllers/Makefile
+++ b/controllers/Makefile
@@ -39,6 +39,7 @@ show_banner:
 	@echo "------------------------------------------------------";
 
 $(PROJECT).a: ${OBJS}
+	mkdir -p lib
 	$(OBJCOPY) $(ARFLAGS) ${LIB_DIR}$(PROJECT).a $(OBJS)
 
 %.o: %.c 
diff --git a/dyn_devices/Makefile b/dyn_devices/Makefile
index c6919cb..a1e46e3 100755
--- a/dyn_devices/Makefile
+++ b/dyn_devices/Makefile
@@ -34,6 +34,7 @@ show_banner:
 	@echo "------------------------------------------------------";
 
 $(PROJECT).a: ${OBJS}
+	mkdir -p lib
 	$(OBJCOPY) $(ARFLAGS) ${LIB_DIR}$(PROJECT).a $(OBJS)
 
 %.o: %.c 
diff --git a/motion/Makefile b/motion/Makefile
index a6372ba..fe1e351 100755
--- a/motion/Makefile
+++ b/motion/Makefile
@@ -37,6 +37,7 @@ show_banner:
 
 
 $(PROJECT).a: ${OBJS}
+	mkdir -p lib
 	$(OBJCOPY) $(ARFLAGS) ${LIB_DIR}$(PROJECT).a $(OBJS)
 
 communications:
-- 
GitLab