aboutsummaryrefslogtreecommitdiffstats
path: root/data/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 6b3324e811..9dcb5ceb62 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -26,9 +26,14 @@ install-kde-applnk:
$(mkinstalldirs) $(DESTDIR)$(kdedesktopdir); \
$(INSTALL_DATA) $(kdedesktop_file) \
$(DESTDIR)$(kdedesktopdir)/$(kdedesktop_file:.desktop=-$(BASE_VERSION).desktop)
+
+uninstall-kde-applnk:
+ rm -rf $(DESTDIR)$(kdedesktopdir)/$(kdedesktop_file:.desktop=-$(BASE_VERSION).desktop)
+
else
install-kde-applnk:
+uninstall-kde-applnk:
endif
@@ -46,6 +51,11 @@ install-data-local: install-kde-applnk $(desktop_file) $(keys_file) $(mime_file)
$(mkinstalldirs) $(DESTDIR)$(mimedir); \
$(INSTALL_DATA) $(srcdir)/$(mime_file) $(DESTDIR)$(mimedir)/$(mime_file:.mime=-$(BASE_VERSION).mime) ;
+uninstall-local: uninstall-kde-applnk
+ rm -rf $(DESTDIR)$(desktopdir)/$(desktop_file:.desktop=-$(BASE_VERSION).desktop) ; \
+ rm -rf $(DESTDIR)$(keysdir)/$(keys_file:.keys=-$(BASE_VERSION).keys) ; \
+ rm -rf $(DESTDIR)$(mimedir)/$(mime_file:.mime=-$(BASE_VERSION).mime) ;
+
# CDE Stuff
if HAVE_DTAPPINTEGRATE