summaryrefslogtreecommitdiffstats
path: root/kexi
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-01-10 20:24:08 +0100
committerSlávek Banko <[email protected]>2016-01-10 20:24:08 +0100
commit795e52bf4b82406fabdd6f5abdfb59a625779e1a (patch)
treecd3070049a59c16e046a55664001d13a21279774 /kexi
parent0c09c41f99f50da12e6a13357683679f1d0bc9c1 (diff)
downloadkoffice-795e52bf4b82406fabdd6f5abdfb59a625779e1a.tar.gz
koffice-795e52bf4b82406fabdd6f5abdfb59a625779e1a.zip
Compile MIME magic file
This partially resolves Bug 2217 Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kexi')
-rw-r--r--kexi/data/Makefile.am7
-rw-r--r--kexi/data/trinity4compat/Makefile.am7
2 files changed, 12 insertions, 2 deletions
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 $<)