From e0ff87c72a159c5277632f33e6fa0d8aeba57969 Mon Sep 17 00:00:00 2001
From: Sojourner Truth <jon.w.wilkes@gmail.com>
Date: Thu, 21 Jul 2016 20:09:39 -0400
Subject: [PATCH] first try at moving lyonpotpourri from l2ork_addons to
 externals

---
 externals/Makefile | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/externals/Makefile b/externals/Makefile
index ed1f99509..897ecd5e1 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -1103,6 +1103,36 @@ loaders-libdir_install:
 loaders-libdir_clean:
 	make -C $(externals_src)/loaders/libdir clean
 
+#------------------------------------------------------------------------------#
+# LYON
+LYON_NAME=lyon
+
+lyon:
+	make -C $(externals_src)/$(LYON_NAME)
+
+lyon_install:
+	install -d $(DESTDIR)$(objectsdir)/$(LYON_NAME)
+	install -p $(wildcard $(externals_src)/$(LYON_NAME)/*.$(EXTENSION)) \
+		$(DESTDIR)$(objectsdir)/$(LYON_NAME)
+	install -p $(externals_src)/$(LYON_NAME)/*.pd \
+		$(DESTDIR)$(objectsdir)/$(LYON_NAME)
+	# don't include cartopol/poltocar-- cyclone library already has those
+	rm $(DESTDIR)$(objectsdir)/$(LYON_NAME)/cartopol.pd
+	rm $(DESTDIR)$(objectsdir)/$(LYON_NAME)/poltocar.pd
+	rm $(DESTDIR)$(objectsdir)/$(LYON_NAME)/cartopol.$(EXTENSION)
+	rm $(DESTDIR)$(objectsdir)/$(LYON_NAME)/poltocar.$(EXTENSION)
+	install -p $(wildcard $(externals_src)/$(LYON_NAME)/sound/*.*) \
+		$(DESTDIR)$(objectsdir)/$(LYON_NAME)
+	# copy the meta file and the shared lib
+	install -p $(wildcard $(externals_src)/$(LYON_NAME)/*lyon*) \
+		$(DESTDIR)$(objectsdir)/$(LYON_NAME)
+	# license and readme
+	install -p $(externals_src)/$(LYON_NAME)/*.txt \
+		$(DESTDIR)$(objectsdir)/$(LYON_NAME)
+
+lyon_clean:
+	make -C $(externals_src)/$(LYON_NAME) clean
+
 #------------------------------------------------------------------------------#
 # MAPPING
 mapping:
-- 
GitLab