
############ Autoconf-generated variables  ###################
INCLUDES = -I$(top_srcdir)/libkcal -I$(top_srcdir)/libkdepim -I$(top_srcdir) $(all_includes)

bin_PROGRAMS = karm
SUBDIRS = support pics

METASOURCES = AUTO

karm_SOURCES =  kaccelmenuwatch.cpp main.cpp desktoptracker.cpp \
                edittaskdialog.cpp idletimedetector.cpp \
                printdialog.cpp timekard.cpp karmutility.cpp ktimewidget.cpp \
                karmstorage.cpp mainwindow.cpp preferences.cpp print.cpp \
                task.cpp taskview.cpp tray.cpp \
		csvexportdialog_base.ui csvexportdialog.cpp
karm_LDADD = -lkdeprint $(top_builddir)/libkcal/libkcal.la \
             $(top_builddir)/libkdepim/libkdepim.la $(LIBXSS)
karm_LDFLAGS = $(all_libraries)
noinst_HEADERS = desktoptracker.h edittaskdialog.h printdialog.h \
                 idletimedetector.h kaccelmenuwatch.h timekard.h \
		 karmutility.h ktimewidget.h karmstorage.h mainwindow.h \
		 preferences.h print.h task.h taskview.h toolicons.h \
		 tray.h version.h csvexportdialog.h

KDE_ICON = karm

rcdir = $(kde_datadir)/karm
rc_DATA = karmui.rc

install-data-local: uninstall.desktop
	$(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Utilities
	$(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Utilities/karm.desktop

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

srcdoc:
	kdoc -a -p -H -d $(HOME)/web/src/karm karm *.h -lkdecore -lkdeui -lqt

include ../admin/Doxyfile.am
