####### kdevelop will overwrite this part!!! (begin)##########
bin_PROGRAMS = ksteak
ksteak_SOURCES = ksteakiface.skel options.cpp engine.cpp dockwidget.cpp ksteak.cpp main.cpp 
ksteak_LDADD   = -lkdeui -lkdecore $(LIB_QT) -lXext -lX11 $(LIBSOCKET)

SUBDIRS = pics 

EXTRA_DIST = main.cpp ksteak.cpp ksteak.h ksteak.desktop dockwidget.cpp dockwidget.h engine.cpp engine.h options.cpp options.h ksteakiface.h ksteakui.rc 

install-data-local:
	$(mkinstalldirs) $(kde_appsdir)/Applications/
	$(INSTALL_DATA) $(srcdir)/ksteak.desktop $(kde_appsdir)/Applications/ksteak.desktop
	$(mkinstalldirs) $(kde_datadir)/ksteak/
	$(INSTALL_DATA) $(srcdir)/ksteakui.rc $(kde_datadir)/ksteak/ksteakui.rc

uninstall-local:
	-rm -f $(kde_appsdir)/Applications/ksteak.desktop
	-rm -f $(kde_datadir)/ksteak/ksteakui.rc

####### kdevelop will overwrite this part!!! (end)############
# this 10 paths are KDE specific. Use them:
# kde_htmldir       Where your docs should go to. (contains lang subdirs)
# kde_appsdir       Where your application file (.kdelnk) should go to. 
# kde_icondir       Where your icon should go to.
# kde_minidir       Where your mini icon should go to.
# kde_datadir       Where you install application data. (Use a subdir)
# kde_locale        Where translation files should go to.(contains lang subdirs)
# kde_cgidir        Where cgi-bin executables should go to.
# kde_confdir       Where config files should go to.
# kde_mimedir       Where mimetypes should go to.
# kde_toolbardir    Where general toolbar icons should go to.
# kde_wallpaperdir  Where general wallpapers should go to.

# set the include path for X, qt and KDE
INCLUDES= $(all_includes)

METASOURCES = AUTO

# the library search path. 
ksteak_LDFLAGS = $(all_libraries) $(KDE_RPATH)

# Uncomment the following two lines if you add a ui.rc file for your application to make use of
# KDE´s XML GUI builing
#rcdir = $(kde_datadir)/ksteak
#rc_DATA = ksteakui.rc

#WARNING: if you use a ui.rc file above, use:

# messages: rc.cpp

# instead of 

# messages:

messages: 
	LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \
	if test -n "$$LIST"; then \
	 $(XGETTEXT) $$LIST -o $(podir)/ksteak.pot; \
	fi

