diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-01-11 01:53:29 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-01-11 01:53:52 +0100 |
commit | 10f97f0a4244cbeda4e72820e6dba0e6f15f8ae0 (patch) | |
tree | 1589cf9c3cd8801725d10a2e37b6ad2b8b0955a6 /tdeio | |
parent | 070b4f3f556e160899e0e03cbd8d96d07841d58a (diff) | |
download | tdelibs-10f97f0a4244cbeda4e72820e6dba0e6f15f8ae0.tar.gz tdelibs-10f97f0a4244cbeda4e72820e6dba0e6f15f8ae0.zip |
Compile MIME magic file
This partially resolves Bug 2217
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 026a0ccdcdd054f227682f7e37dceef68173c6f9)
Diffstat (limited to 'tdeio')
-rw-r--r-- | tdeio/CMakeLists.txt | 12 | ||||
-rw-r--r-- | tdeio/Makefile.am | 7 |
2 files changed, 17 insertions, 2 deletions
diff --git a/tdeio/CMakeLists.txt b/tdeio/CMakeLists.txt index c561e8294..0762a056f 100644 --- a/tdeio/CMakeLists.txt +++ b/tdeio/CMakeLists.txt @@ -36,7 +36,17 @@ link_directories( ##### other data ################################ -install( FILES tdeio.magic DESTINATION ${CONFIG_INSTALL_DIR}/magic ) +add_custom_command( + OUTPUT tdeio.magic.mgc + COMMAND file -C -m ${CMAKE_CURRENT_SOURCE_DIR}/tdeio.magic +) + +add_custom_target( + tdeio_magic_mgc + ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tdeio.magic.mgc +) + +install( FILES tdeio.magic ${CMAKE_CURRENT_BINARY_DIR}/tdeio.magic.mgc DESTINATION ${CONFIG_INSTALL_DIR}/magic ) install( FILES application.desktop kurifilterplugin.desktop diff --git a/tdeio/Makefile.am b/tdeio/Makefile.am index fcf2d4c6f..9c549ec18 100644 --- a/tdeio/Makefile.am +++ b/tdeio/Makefile.am @@ -35,7 +35,7 @@ libtdeio_la_LIBADD = kssl/libkssl.la tdeio/libtdeiocore.la \ $(LIBZ) $(LIBFAM) $(LIBVOLMGT) $(ACL_LIBS) $(LIB_QT) $(LIB_TDECORE) $(top_builddir)/dcop/libDCOP.la $(LIB_X11) magicdir = $(kde_confdir)/magic -magic_DATA = tdeio.magic +magic_DATA = tdeio.magic tdeio.magic.mgc kde_servicetypes_DATA = application.desktop kurifilterplugin.desktop \ kcomprfilter.desktop kscan.desktop kdatatool.desktop \ @@ -64,6 +64,11 @@ messages: $(XGETTEXT) `find . ../tdeioslave -name "*.cpp" -o -name "*.cc" -o -name "*.h"` -o $(podir)/tdeio.pot rm -f rc.cpp +SUFFIXES = .magic .magic.mgc + +.magic.magic.mgc: + (cd `dirname $@` && file -C -m $<) + DOXYGEN_REFERENCES = tdecore tdefx kjs dcop tdeui tdeio/tdeio tdeio/tdefile DOXYGEN_EXCLUDE = kssl/kssl include ../admin/Doxyfile.am |