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 21:00:03 +0100
commit4589c7969560f8f6beeedfb611da48aa886c879b (patch)
tree478bd1891a2dc5fca54e1f5e8c41da78159c92cc /kig
parentea0e5854ccef8d95468bdf7a2c2da3e4b26d238a (diff)
downloadtdeedu-4589c7969560f8f6beeedfb611da48aa886c879b.tar.gz
tdeedu-4589c7969560f8f6beeedfb611da48aa886c879b.zip
Compile MIME magic file
This partially resolves Bug 2217 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit c460aba9470c486580a5c812d36281644bd46fb9)
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 $<)