From 35de8d1a557190aed5f9e9596d98dbb064632db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 10 Jan 2016 20:24:08 +0100 Subject: Compile MIME magic file This partially resolves Bug 2217 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 795e52bf4b82406fabdd6f5abdfb59a625779e1a) --- kexi/data/Makefile.am | 7 ++++++- kexi/data/trinity4compat/Makefile.am | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'kexi') diff --git a/kexi/data/Makefile.am b/kexi/data/Makefile.am index 4df4637e..503301b5 100644 --- a/kexi/data/Makefile.am +++ b/kexi/data/Makefile.am @@ -32,7 +32,7 @@ servicetypes_DATA=kexihandler.desktop #services_DATA= magicdir = $(kde_confdir)/magic -magic_DATA = kexi.magic +magic_DATA = kexi.magic kexi.magic.mgc mimetypedir = $(kde_mimedir)/application @@ -50,3 +50,8 @@ if need_trinity4_compatibility endif SUBDIRS = $(KDE34COMPAT) + +SUFFIXES = .magic .magic.mgc + +.magic.magic.mgc: + (cd `dirname $@` && file -C -m $<) diff --git a/kexi/data/trinity4compat/Makefile.am b/kexi/data/trinity4compat/Makefile.am index 89c03dc0..5a98c376 100644 --- a/kexi/data/trinity4compat/Makefile.am +++ b/kexi/data/trinity4compat/Makefile.am @@ -4,7 +4,12 @@ application_DATA = \ applicationdir = $(kde_mimedir)/application -magic_DATA = sqlite.magic msaccess.magic +magic_DATA = sqlite.magic sqlite.magic.mgc msaccess.magic msaccess.magic.mgc magicdir = $(kde_confdir)/magic EXTRA_DIST = $(application_DATA) + +SUFFIXES = .magic .magic.mgc + +.magic.magic.mgc: + (cd `dirname $@` && file -C -m $<) -- cgit v1.2.1