summaryrefslogtreecommitdiffstats
path: root/kig
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-01-10 20:59:48 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-01-10 20:59:48 +0100
commitc460aba9470c486580a5c812d36281644bd46fb9 (patch)
treef3acc94ca51f24788391f8dac0d833661e6f55c7 /kig
parent9cabd76300f288c888192145898cdd3aadbae13b (diff)
downloadtdeedu-c460aba9470c486580a5c812d36281644bd46fb9.tar.gz
tdeedu-c460aba9470c486580a5c812d36281644bd46fb9.zip
Compile MIME magic file
This partially resolves Bug 2217 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kig')
-rw-r--r--kig/mimetypes/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/kig/mimetypes/Makefile.am b/kig/mimetypes/Makefile.am
index 38387bfc..07bf7ff5 100644
--- a/kig/mimetypes/Makefile.am
+++ b/kig/mimetypes/Makefile.am
@@ -3,6 +3,11 @@ kdemime_DATA = x-kig.desktop x-kgeo.desktop x-kseg.desktop x-cabri.desktop x-drg
kdemimedir=$(kde_mimedir)/application
magicdir = $(kde_confdir)/magic
-magic_DATA = cabri.magic drgeo.magic
+magic_DATA = cabri.magic cabri.magic.mgc drgeo.magic drgeo.magic.mgc
KDE_ICON = AUTO
+
+SUFFIXES = .magic .magic.mgc
+
+.magic.magic.mgc:
+ (cd `dirname $@` && file -C -m $<)