SUBDIRS = ktheme

# just set the variable
APPSDIR = $(kde_appsdir)/Systemsteuerung
DOCDIR = $(kde_htmldir)/de/ktheme
DATADIR = $(kde_datadir)/ktheme
HELPDIR = $(kde_htmldir)/default/kcontrol/ktheme

# just install datas here. Use install-exec-data for scripts and etc.
# the binary itself is already installed from automake
# use mkinstalldirs, not "install -d"
# don't install a list of file. Just one file per install.
# if you have more of them, create a subdirectory with an extra Makefile 
install-data-local: 
	$(mkinstalldirs) $(APPSDIR)
	$(mkinstalldirs) $(HELPDIR)
	$(mkinstalldirs) $(DATADIR)
	$(mkinstalldirs) $(DATADIR)/wallpapers
	$(mkinstalldirs) $(DATADIR)/soundthemes
	$(mkinstalldirs) $(DATADIR)/soundthemes/alien
	$(mkinstalldirs) $(DATADIR)/soundthemes/robot
	$(mkinstalldirs) $(DATADIR)/soundthemes/warp
	$(mkinstalldirs) $(DATADIR)/color-schemes
	$(INSTALL_DATA) KTheme.kdelnk $(APPSDIR)
	$(INSTALL_DATA) wallpapers/* $(DATADIR)/wallpapers
	$(INSTALL_DATA) soundthemes/alien/* $(DATADIR)/soundthemes/alien
	$(INSTALL_DATA) soundthemes/robot/* $(DATADIR)/soundthemes/robot
	$(INSTALL_DATA) soundthemes/warp/* $(DATADIR)/soundthemes/warp
	$(INSTALL_DATA) color-schemes/* $(DATADIR)/color-schemes
	$(INSTALL_DATA) help/* $(HELPDIR)
	test -z $(exec_prefix)/bin/kwmcom ||$(exec_prefix)/bin/kwmcom kpanel:restart
	@echo ""
	@echo "***********************************************"
	@echo "**                                           **"
	@echo "**  Have fun using KTheme!                   **"
	@echo "**  Written by Christian Poulter             **"
	@echo "**  Copyright (c) 1998 by Christian Poulter  **"
	@echo "**                                           **"
	@echo "**  Themes were made by Kenny Lim            **"
	@echo "**                                           **"
	@echo "***********************************************" 
	@echo Have fun!

# remove ALL you have installed in install-data-local or install-exec-local
uninstall-local:
	-rm $(APPSDIR)/KTheme.kdelnk
	-rm -r $(DATADIR)
	-rm -r $(HELPDIR)
	test -z $(exec_prefix)/bin/kwmcom ||$(exec_prefix)/bin/kwmcom kpanel:restart

