summaryrefslogtreecommitdiff
path: root/src/themes/Makefile.am
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2004-11-10 07:59:38 +0000
committerJames Henstridge <jamesh@src.gnome.org>2004-11-10 07:59:38 +0000
commitbc9e517842177250ffd708da9e89484eab89c842 (patch)
tree9387022c50249419f0c4e5ae485686a94e817f56 /src/themes/Makefile.am
parentf3743bc49409de3cf56463a6f57adc9f29623539 (diff)
downloadmetacity-bc9e517842177250ffd708da9e89484eab89c842.tar.gz
metacity-bc9e517842177250ffd708da9e89484eab89c842.tar.bz2
remove intltool stuff on distclean.
2004-11-10 James Henstridge <james@jamesh.id.au> * Makefile.am (DISTCLEANFILES): remove intltool stuff on distclean. * src/themes/Makefile.am (uninstall-local): add uninstall rule. * src/Makefile.am (libmetacity_private_la_CFLAGS): set this variable so that the files shared with metacity get compiled with different names. * configure.in: use more modern macros in some places, and make sure that $ACLOCAL_AMFLAGS is set so that rebuilds work better. * autogen.sh (conf_flags): use newer automake.
Diffstat (limited to 'src/themes/Makefile.am')
-rw-r--r--src/themes/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/themes/Makefile.am b/src/themes/Makefile.am
index 9d0bd5e..82c504e 100644
--- a/src/themes/Makefile.am
+++ b/src/themes/Makefile.am
@@ -23,6 +23,20 @@ install-data-local:
done) \
done
+uninstall-local:
+ for THEME in $(THEMES); do \
+ echo '-- Uninstalling theme '$$THEME; \
+ (uninstallfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$uninstallfiles; do \
+ i=`basename $$i`; \
+ echo '-- Removing '$$i ; \
+ rm -f $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR)/$$i ; \
+ done); \
+ rmdir $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) || :; \
+ rmdir $(DESTDIR)$(THEME_DIR)/$$THEME || :; \
+ done
+ -rmdir $(DESTDIR)$(THEME_DIR)
+
dist-hook:
mkdir $(distdir)/themes; \
for THEME in $(THEMES); do \