From 190080bf60ea7d85b00f1a8ee005528c4f798921 Mon Sep 17 00:00:00 2001 From: tmzullinger Date: Sat, 29 Mar 2008 20:32:38 +0000 Subject: cleanup more of our dirs with make uninstall git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1955 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 4 ++++ bindings/python/Makefile.am | 3 +++ docs/reference/Makefile.am | 3 +++ src/Makefile.am | 7 ++++++- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7c7ad27..0d8db55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-29 Todd Zullinger + * bindings/python/Makefile.am + docs/reference/Makefile.am + src/Makefile.am: cleanup more of our dirs with make uninstall + * tests/test-rebuild-db.cc: include string.h to fix builds with gcc 4.3 (fixes SF tracker #1928618) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 0c11d02..7068081 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -60,4 +60,7 @@ gpod.py: $(SWIG_INTERFACES) test: $(MAKE) -C tests test + +uninstall-hook: + -rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gpoddir) endif diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am index 36a5720..9ae12d6 100644 --- a/docs/reference/Makefile.am +++ b/docs/reference/Makefile.am @@ -79,3 +79,6 @@ EXTRA_DIST += version.xml.in # Build the documentation when creating tarballs dist-hook-local: $(MAKE) all + +uninstall-hook: + -rmdir --ignore-fail-on-non-empty $(DESTDIR)$(TARGET_DIR) diff --git a/src/Makefile.am b/src/Makefile.am index 1e5315b..5c606f2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,8 @@ libgpod_la_SOURCES = \ libgpod_la_LDFLAGS = -version-info $(LIBGPOD_SO_VERSION) -no-undefined -libgpodincludedir = $(includedir)/gpod-1.0/gpod +libgpodincludebase = $(includedir)/gpod-1.0 +libgpodincludedir = $(libgpodincludebase)/gpod libgpodinclude_HEADERS = itdb.h noinst_HEADERS = \ db-artwork-debug.h \ @@ -38,3 +39,7 @@ noinst_HEADERS = \ INCLUDES=$(LIBGPOD_CFLAGS) LIBS=$(LIBGPOD_LIBS) + +uninstall-hook: + -rmdir --ignore-fail-on-non-empty $(DESTDIR)$(libgpodincludedir) + -rmdir --ignore-fail-on-non-empty $(DESTDIR)$(libgpodincludebase) -- cgit