INCLUDES = $(all_includes)

bin_PROGRAMS = kmenuedit
lib_LTLIBRARIES = kmenuedit.la

CLEANFILES = dummy.cpp

kmenuedit_la_SOURCES = basictab.cpp treeview.cpp desktopfileeditor.cpp menueditview.cpp kmenuedit.cpp main.cpp khotkeys.cpp

kmenuedit_la_LIBADD = $(LIB_KDEUI) $(LIB_KIO)
kmenuedit_la_LDFLAGS = $(all_libraries) -module -avoid-version

kmenuedit_SOURCES = dummy.cpp
kmenuedit_LDADD   = kmenuedit.la
kmenuedit_LDFLAGS = $(all_libraries) $(KDE_RPATH)

noinst_HEADERS = kmenuedit.h menueditview.h treeview.h desktopfileeditor.h basictab.h khotkeys.h

METASOURCES = AUTO

apps_DATA = kmenuedit.desktop
appsdir = $(kde_appsdir)/Settingsmenu

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

KDE_ICON = kmenuedit

EXTRA_DIST = $(apps_DATA)

rcdir = $(kde_datadir)/kmenuedit
rc_DATA = kmenueditui.rc

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

dummy.cpp:
	echo > dummy.cpp

SUBDIRS = pixmaps
