kcmSUBDIRS = docs

kde_module_LTLIBRARIES = kcm_fontinst.la
kcm_fontinst_la_LIBADD  = $(LIBFONTCONFIG_LIBS) $(LIBFREETYPE_LIBS) $(LIB_KIO)
kcm_fontinst_la_METASOURCES = AUTO
kcm_fontinst_la_LDFLAGS = $(KDE_PLUGIN) $(all_libraries) $(KDE_RPATH) $(LIBFONTCONFIG_RPATH) $(LIBFREETYPE_RPATH) -module -avoid-version -no-undefined
 
desktop_DATA = kcmfontinst.desktop
desktopdir = $(kde_appsdir)/Settings/System/
 
kcm_fontinst_la_SOURCES = \
        AfmCreator.cpp BufferedFile.cpp CompressedFile.cpp Config.cpp \
        Encodings.cpp ErrorDialog.cpp FontEngine.cpp FontListWidget.cpp \
        FontPreview.cpp FontmapCreator.cpp FontSelectorWidget.cpp FontsWidget.cpp \
        Kfi.cpp KfiCmModule.cpp KfiGlobal.cpp KfiMainWidget.cpp \
        MetaDialog.cpp Misc.cpp SettingsWidget.cpp StarOfficeConfig.cpp \
        SysConfigurer.cpp Ttf.cpp UiConfig.cpp XConfig.cpp \
        KfiMainWidgetData.ui \
        SettingsWidgetData.ui \
	FontListWidgetDcopIface.skel

EXTRA_DIST = \
	$(desktop_DATA) \
	KfiCmModule.h \
	Config.h \
	Encodings.h \
	FontEngine.h \
	FontListWidget.h\
	FontListWidgetDcopIface.h \
        FontSelectorWidget.h \
	FontsWidget.h \
	Kfi.h \
	KfiGlobal.h \
	KfiMainWidget.h \
	MetaDialog.h \
	Misc.h \
	SettingsWidget.h \
	ErrorDialog.h \
	Ttf.h \
	AfmCreator.h \
	SysConfigurer.h \
	FontmapCreator.h \
	BufferedFile.h \
	StarOfficeConfig.h \
	XConfig.h \
	FontPreview.h \
	CompressedFile.h \
	UiConfig.h \
	kcmfontinst_star_office.png

noinst_HEADERS = $(EXTRA_DIST)

INCLUDES= $(LIBFREETYPE_CFLAGS) -I$(srcdir)/../../fonts/ $(all_includes)
KDE_ICON = kcmfontinst

pics_DATA = kcmfontinst_star_office.png
picsdir = $(kde_datadir)/kcmfontinst/pics

messages: rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/fontinst.pot
