From eef77e0d58d7132ca19525499dfbf1b489018c9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?=
 <sebastien.villemot@sciencespo.fr>
Date: Wed, 28 Jun 2017 15:06:02 +0200
Subject: [PATCH] Do not install LICENSE.md files of submodules under
 /usr/lib/dynare/matlab.

(cherry picked from commit 801154dbee1e54f5d17514bfdd094fe44d3effd0)
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index ca84d398f..c52513252 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,6 +46,7 @@ install-exec-local:
 	cp -r contrib/ms-sbvar/TZcode/MatlabFiles $(DESTDIR)$(pkglibdir)/contrib/ms-sbvar/TZcode
 	cp -r examples $(DESTDIR)$(pkglibdir)
 	cp -r matlab $(DESTDIR)$(pkglibdir)
+	find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
 	rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
 	{ \
 	if [ -z "`file preprocessor/dynare_m | grep x86.64`" ]; then \
-- 
GitLab