SUBDIRS = . pics icons sounds kget_plug_in
INCLUDES = $(all_includes)


bin_PROGRAMS = kget

kget_LDFLAGS = $(all_libraries) $(KDE_RPATH) -lDCOP $(LIB_QT)
kget_LDADD   = $(LIB_TDEFILE) $(LIB_TDEUI) $(LIB_TDECORE) $(LIBSOCKET)
kget_SOURCES = getfilejob.cpp slaveevent.cpp slave.cpp transferlist.cpp \
               transfer.cpp settings.cpp logwindow.cpp \
               tdemainwidget.cpp tdefileio.cpp droptarget.cpp docking.cpp \
               dlgconnectionbase.ui dlgautomationbase.ui dlglimitsbase.ui \
               dlgadvancedbase.ui dlgdirectoriesbase.ui dlgsystembase.ui \
               dlgSystem.cpp dlgPreferences.cpp dlgLimits.cpp \
               dlgIndividual.cpp dlgDirectories.cpp dlgConnection.cpp \
               dlgAutomation.cpp dlgAdvanced.cpp \
               main.cpp dockindividual.cpp kget_iface.skel safedelete.cpp

noinst_HEADERS = common.h \
                 dlgAdvanced.h dlgAutomation.h dlgConnection.h \
                 dlgDirectories.h dlgIndividual.h dlgLimits.h \
                 dlgPreferences.h dlgSystem.h docking.h droptarget.h \
                 tdefileio.h tdemainwidget.h logwindow.h settings.h \
                 transfer.h transferlist.h version.h slave.h \
                 slaveevent.h http_defaults.h getfilejob.h dockindividual.h

kget_METASOURCES = AUTO

xdg_apps_DATA = kget.desktop

mimedir = $(kde_mimedir)/application
mime_DATA =x-kgetlist.desktop

servicemenudir = $(kde_datadir)/konqueror/servicemenus
servicemenu_DATA = kget_download.desktop

EXTRA_DIST = kget.desktop $(mime_DATA)

rcdir = $(kde_datadir)/kget
rc_DATA = kgetui.rc

events_DATA = eventsrc
eventsdir = $(kde_datadir)/kget

KDE_ICON = AUTO

messages: rc.cpp
	$(EXTRACTRC) *.ui > rc.cpp
	$(EXTRACTRC) *.rc */*.rc >> rc.cpp
	$(XGETTEXT) *.cpp */*.cpp *.h -o $(podir)/kget.pot
