diff --git a/kexi/data/Makefile.am b/kexi/data/Makefile.am index 4df4637ee..503301b5f 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 89c03dc0f..5a98c3769 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 $<)