From 0bed0167616ab3b9811a848795b3dd69ec292a20 Mon Sep 17 00:00:00 2001
From: Adam Wujek <adam.wujek@cern.ch>
Date: Thu, 24 Sep 2015 11:02:30 +0200
Subject: [PATCH] Update top-level makefile

--rename old top-level Makefile to Makefile.old
--create new top-level Makefile with drivers that are already ported to
L867

Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
---
 Makefile     | 31 +++++++++++++++++--------------
 Makefile.old | 16 ++++++++++++++++
 2 files changed, 33 insertions(+), 14 deletions(-)
 create mode 100644 Makefile.old

diff --git a/Makefile b/Makefile
index 92665cb1..d4d62675 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,19 @@
-SUBDIRS += \
-	vmebridge \
-	utils \
-	cdcm \
-	lib \
-	icv196 \
-	vmod \
-	vd80 \
-	xmem \
-	mttn \
-	ctr \
-	cvorg \
-	sis33 \
+DIRS = \
+    sis33 \
+    vd80-2 \
+    encore \
+    mil1553 \
+    ctr-2.0 \
+    cvorb \
+    cvorg \
+    vmebridge \
 
+.PHONY: all clean cleanall $(DIRS)
+
+all clean cleanall: $(DIRS)
+clean: TARGET = clean
+cleanall: TARGET = cleanall
+
+$(DIRS):
+	$(MAKE) -C $@ $(TARGET)
 
-include ./makefiles/Makefile.base
diff --git a/Makefile.old b/Makefile.old
new file mode 100644
index 00000000..92665cb1
--- /dev/null
+++ b/Makefile.old
@@ -0,0 +1,16 @@
+SUBDIRS += \
+	vmebridge \
+	utils \
+	cdcm \
+	lib \
+	icv196 \
+	vmod \
+	vd80 \
+	xmem \
+	mttn \
+	ctr \
+	cvorg \
+	sis33 \
+
+
+include ./makefiles/Makefile.base
-- 
GitLab