From 2b08b018a9d5f9bac4b29de2bfa8e4d2a7cbd1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 14 Feb 2006 21:56:34 +0000 Subject: [PATCH] improved "make uninstall" of Geany git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@196 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- Makefile.am | 4 ++++ doc/Makefile.am | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c6ddc47e..23e0a063 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,10 @@ EXTRA_DIST = \ global.tags \ data/filetypes.* +uninstall-local: + rm -rf $(DESTDIR)$(pkgdatadir); + rm $(DESTDIR)$(datadir)/pixmaps/geany.png; + install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ diff --git a/doc/Makefile.am b/doc/Makefile.am index 8cf7c670..372c5b50 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -31,6 +31,9 @@ doc-clean: rm -f geany.txt rm -f *.pdf +uninstall-local: + rm -rf $(DOCDIR); + install-data-local: geany.1 geany.txt html/index.html $(mkinstalldirs) $(DOCDIR)/html/images for file in `ls $(HTML_FILES)`; do \ @@ -45,5 +48,11 @@ install-data-local: geany.1 geany.txt html/index.html $(INSTALL_DATA) $(srcdir)/$$file $(DOCDIR)/html/images/$$basefile; \ fi \ done - $(INSTALL_DATA) geany.txt $(DOCDIR) + $(INSTALL_DATA) geany.txt $(DOCDIR)/manual.txt + $(INSTALL_DATA) ../README $(DOCDIR) + $(INSTALL_DATA) ../ChangeLog $(DOCDIR) + $(INSTALL_DATA) ../NEWS $(DOCDIR) + $(INSTALL_DATA) ../COPYING $(DOCDIR) + $(INSTALL_DATA) ../AUTHORS $(DOCDIR) + $(INSTALL_DATA) ../TODO $(DOCDIR)